Files
Nim/tests/closure/tinvalidclosure.nim
2014-01-13 02:10:03 +01:00

13 lines
203 B
Nim

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