Use typeflag instead
This commit is contained in:
parent
26a867c83c
commit
b022576ce9
11 changed files with 29 additions and 18 deletions
10
tests/closure/tinvalidclosure5.nim
Normal file
10
tests/closure/tinvalidclosure5.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got <proc (){.closure, gcsafe, locks: 0.}> but expected 'A = proc (){.nimcall.}'"
|
||||
line: 9
|
||||
"""
|
||||
|
||||
type A = proc() {.nimcall.}
|
||||
proc main =
|
||||
let b = 1
|
||||
let a: A = proc() = echo b
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue