made tests green again

This commit is contained in:
Araq 2012-08-14 00:09:06 +02:00
commit 991b3096e8
7 changed files with 23 additions and 10 deletions

View file

@ -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])

View file

@ -6,6 +6,3 @@ discard """
method m(i: int): int =
return 5