summary refs log tree commit diff stats
path: root/tests/reject/tconstraints.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-07-09 00:54:46 +0200
committerAraq <rumpf_a@web.de>2012-07-09 00:54:46 +0200
commit795afb0021094d069b5f77d4b7ba6c9e5fc5d803 (patch)
tree905751db016f88a7039b3b8d459990060edaa57b /tests/reject/tconstraints.nim
parentf0dd96fa58478f732009def25f527d67d87e464c (diff)
downloadNim-795afb0021094d069b5f77d4b7ba6c9e5fc5d803.tar.gz
made tests green again
Diffstat (limited to 'tests/reject/tconstraints.nim')
-rwxr-xr-xtests/reject/tconstraints.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/reject/tconstraints.nim b/tests/reject/tconstraints.nim
index aafe86911..e61095fff 100755
--- a/tests/reject/tconstraints.nim
+++ b/tests/reject/tconstraints.nim
@@ -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"