summary refs log tree commit diff stats
path: root/tests/run
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-05-19 17:06:11 +0200
committerAraq <rumpf_a@web.de>2013-05-19 17:06:11 +0200
commit7b36d3d6ff390cc512be06a2c065108fc059eb6f (patch)
tree07d576c8ab88f9cc6070b2be8781f40711ba50b5 /tests/run
parent8ae49eddc8521714926352c66deda2b5c0ac1637 (diff)
downloadNim-7b36d3d6ff390cc512be06a2c065108fc059eb6f.tar.gz
made some tests green
Diffstat (limited to 'tests/run')
-rw-r--r--tests/run/tcurrncy.nim2
-rw-r--r--tests/run/tvarargs_vs_generic.nim2
2 files changed, 2 insertions, 2 deletions
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.}
diff --git a/tests/run/tvarargs_vs_generic.nim b/tests/run/tvarargs_vs_generic.nim
index 7c1fa67b2..122f3e453 100644
--- a/tests/run/tvarargs_vs_generic.nim
+++ b/tests/run/tvarargs_vs_generic.nim
@@ -1,5 +1,5 @@
 discard """
-  output: "direct\nopenarray\nvarargs"
+  output: "direct\ngeneric\ngeneric"
 """
 
 proc withDirectType(args: string) =