From b64eeeb4303953f9fe1135cb9c3c61e23ec55afa Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 8 Sep 2012 15:43:21 +0200 Subject: term rewriting improvements --- tests/run/tpatterns.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/run') diff --git a/tests/run/tpatterns.nim b/tests/run/tpatterns.nim index 4a83d167c..6bc8772e3 100644 --- a/tests/run/tpatterns.nim +++ b/tests/run/tpatterns.nim @@ -4,7 +4,7 @@ hel''' """ template optZero{x+x}(x: int): int = x*3 -template andthen{x*3}(x: int): int = x*4 +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) var y = 12 -- cgit 1.4.1-2-gfad0