Files
Nim/tests/reject/tinvalidclosure.nim
2012-08-14 00:09:06 +02: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])