Files
Nim/tests/vm/tnilclosurecall.nim
metagn f69809bb17 proper error for calling nil closure in VM (#24059)
fixes #24057

Instead of crashing the compiler, the VM now gives a stacktrace if a nil
closure is attempted to be called.
2024-09-04 09:13:04 +02:00

9 lines
106 B
Nim

discard """
errormsg: "attempt to call nil closure"
line: 8
"""
static:
let x: proc () = nil
x()