mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
13 lines
203 B
Nim
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])
|