summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-05-16 08:54:58 +0200
committerAraq <rumpf_a@web.de>2013-05-16 08:54:58 +0200
commit064df34ae4134490c5be048becd0fa5294f82194 (patch)
treea7569ed2f12222fc47e3df2ea3f5479d626050db
parent886a1ab15d1a94eb5a545b562fb57d7496c3e1d2 (diff)
downloadNim-064df34ae4134490c5be048becd0fa5294f82194.tar.gz
made some tests green
-rw-r--r--tests/reject/teffects5.nim2
-rw-r--r--tests/reject/tenummix.nim2
-rw-r--r--tests/run/tcurrncy.nim2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/reject/teffects5.nim b/tests/reject/teffects5.nim
index 42be115c3..d630a6fc4 100644
--- a/tests/reject/teffects5.nim
+++ b/tests/reject/teffects5.nim
@@ -1,5 +1,5 @@
 discard """
-  errormsg: 'type mismatch'
+  errormsg: "type mismatch"
   line: 7
 """
 
diff --git a/tests/reject/tenummix.nim b/tests/reject/tenummix.nim
index 22c07f14a..f58e7989d 100644
--- a/tests/reject/tenummix.nim
+++ b/tests/reject/tenummix.nim
@@ -1,6 +1,6 @@
 discard """
   file: "system.nim"
-  line: 695
+  line: 696
   errormsg: "type mismatch"
 """
 
diff --git a/tests/run/tcurrncy.nim b/tests/run/tcurrncy.nim
index d04620cfb..78dbc2a89 100644
--- a/tests/run/tcurrncy.nim
+++ b/tests/run/tcurrncy.nim
@@ -10,7 +10,7 @@ template Additive(typ: typeDesc): stmt =
   proc `+` *(x: typ): typ {.borrow.}
   proc `-` *(x: typ): typ {.borrow.}
 
-template Multiplicative(typ, base: typeDesc): stmt =
+template Multiplicative(typ, base: typeDesc): stmt {.immediate.} =
   proc `*` *(x: typ, y: base): typ {.borrow.}
   proc `*` *(x: base, y: typ): typ {.borrow.}
   proc `div` *(x: typ, y: base): typ {.borrow.}