mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
11 lines
209 B
Nim
11 lines
209 B
Nim
discard """
|
|
errormsg: "type mismatch: got <proc (){.closure, gcsafe.}> but expected 'A = proc (){.nimcall.}'"
|
|
line: 9
|
|
"""
|
|
|
|
type A = proc() {.nimcall.}
|
|
proc main =
|
|
let b = 1
|
|
let a: A = proc() = echo b
|
|
|