summary refs log tree commit diff stats
path: root/tests/reject
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-08 15:43:21 +0200
committerAraq <rumpf_a@web.de>2012-09-08 15:43:21 +0200
commitb64eeeb4303953f9fe1135cb9c3c61e23ec55afa (patch)
tree0f994de4a02afd9bed14dafcac24a3dd2df99d0d /tests/reject
parent355ae07b8f3362af4e90770477d344dcd2fef594 (diff)
downloadNim-b64eeeb4303953f9fe1135cb9c3c61e23ec55afa.tar.gz
term rewriting improvements
Diffstat (limited to 'tests/reject')
-rw-r--r--tests/reject/tdisallowif.nim4
-rwxr-xr-xtests/reject/ttypenoval.nim2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/reject/tdisallowif.nim b/tests/reject/tdisallowif.nim
index 002bc7491..f7bb7098b 100644
--- a/tests/reject/tdisallowif.nim
+++ b/tests/reject/tdisallowif.nim
@@ -4,8 +4,8 @@ discard """
 """
 
 template optZero{x+x}(x: int): int = x*3
-template andthen{x*3}(x: int): int = x*4
-template optSubstr1{x = substr(x, a, b)}(x: string, a, b: int) = setlen(x, b+1)
+template andthen{`*`(x,3)}(x: int): int = x*4
+template optSubstr1{x = substr(x, 0, b)}(x: string, b: int) = setlen(x, b+1)
 
 template disallowIf{
   if cond: action
diff --git a/tests/reject/ttypenoval.nim b/tests/reject/ttypenoval.nim
index 6362407ef..214b35e29 100755
--- a/tests/reject/ttypenoval.nim
+++ b/tests/reject/ttypenoval.nim
@@ -1,7 +1,7 @@
 discard """
   file: "ttypenoval.nim"
   line: 38
-  errormsg: "type mismatch: got (typedesc{int}) but expected 'int'"
+  errormsg: "type mismatch: got (typedesc[int]) but expected 'int'"
 """
 
 # A min-heap.