Files
Nim/tests/closure/tinvalidclosure.nim
2015-04-21 11:17:24 +02:00

13 lines
228 B
Nim

discard """
line: 12
errormsg: "type mismatch: got (proc (x: int){.closure, gcsafe, locks: 0.})"
"""
proc ugh[T](x: T) {.closure.} =
echo "ugha"
proc takeCdecl(p: proc (x: int) {.cdecl.}) = discard
takeCDecl(ugh[int])