Files
Nim/tests/closure/tinvalidclosure.nim
ringabout 5602183234 'lock levels' are deprecated, now a noop (#20539)
* 'lock levels' are deprecated, now a noop

* fixes tests
2022-10-11 09:17:09 +02:00

13 lines
218 B
Nim

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