Files
Nim/tests/closure/tinvalidclosure.nim
2014-04-20 14:00:04 +02:00

13 lines
211 B
Nim

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