Files
Nim/tests/closure/tinvalidclosure.nim
2014-12-19 13:44:56 +01:00

13 lines
225 B
Nim

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