made tests green again
This commit is contained in:
parent
f0dd96fa58
commit
795afb0021
15 changed files with 38 additions and 30 deletions
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 15
|
||||
errormsg: "type mismatch: got (int)"
|
||||
line: 16
|
||||
errormsg: "type mismatch: got (int literal(232))"
|
||||
"""
|
||||
|
||||
proc myGenericProc[T: object|tuple|ptr|ref|distinct](x: T): string =
|
||||
|
|
@ -12,7 +12,7 @@ type
|
|||
var
|
||||
x: TMyObj
|
||||
|
||||
assert myGenericProc(232) == "232"
|
||||
assert myGenericProc(x) == "(x: 0, y: 0)"
|
||||
assert myGenericProc(232) == "232"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue