fix tests

This commit is contained in:
Timothee Cour 2019-07-06 20:09:26 -07:00
commit b80d70b0f3
11 changed files with 153 additions and 73 deletions

View file

@ -1,8 +1,11 @@
discard """
errormsg: "type mismatch: got <Thin[system.int]>"
nimout: '''t7600_1.nim(18, 6) Error: type mismatch: got <Thin[system.int]>
nimout: '''t7600_1.nim(21, 6) Error: type mismatch: got <Thin[system.int]>
but expected one of:
proc test[T](x: Paper[T])
first type mismatch at position: 1
required type for x: Paper[test.T]
but expression 'tn' is of type: Thin[system.int]
expression: test tn'''
"""

View file

@ -1,8 +1,11 @@
discard """
errormsg: "type mismatch: got <Thin>"
nimout: '''t7600_2.nim(17, 6) Error: type mismatch: got <Thin>
nimout: '''t7600_2.nim(20, 6) Error: type mismatch: got <Thin>
but expected one of:
proc test(x: Paper)
first type mismatch at position: 1
required type for x: Paper
but expression 'tn' is of type: Thin
expression: test tn'''
"""