made tests green again
This commit is contained in:
parent
adb73ec9ed
commit
991b3096e8
7 changed files with 23 additions and 10 deletions
|
|
@ -1,7 +1,12 @@
|
|||
discard """
|
||||
line: 6
|
||||
errormsg: "'ugh' cannot have 'closure' calling convention"
|
||||
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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue