From 064df34ae4134490c5be048becd0fa5294f82194 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 16 May 2013 08:54:58 +0200 Subject: [PATCH] made some tests green --- tests/reject/teffects5.nim | 2 +- tests/reject/tenummix.nim | 2 +- tests/run/tcurrncy.nim | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/reject/teffects5.nim b/tests/reject/teffects5.nim index 42be115c3d..d630a6fc4b 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 22c07f14a8..f58e7989de 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 d04620cfb9..78dbc2a891 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.}