mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
13 lines
218 B
Nim
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])
|