Nim
Nim copied to clipboard
internal error: semcall.nim(229, 18) nArg != nil
Example
the code below should give a clean CT error, not an internal error
import std/jsffi
let a = toJs(3)
let b = a.toJs(int)
Current Output
nim r -b:js main
compiler/semcall.nim(229, 18) nArg != nil
Expected Output
proper CT error
Additional Information
1.5.1 41965880ce095da09a1f7e781a0c79e436432401
related: https://github.com/nim-lang/Nim/issues/15607