Files
Nim/tests/closure/tinvalidclosure.nim
2018-12-11 21:23:21 +01:00

13 lines
219 B
Nim

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