summary refs log tree commit diff stats
path: root/tests/parser
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-05-29 22:21:51 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-05-29 22:21:51 +0200
commit5b27b263fd76484fa6251ccd29520c2764b55818 (patch)
tree0629164266d4183ace4503d77f0d2a999fc9693f /tests/parser
parenteb471acffb02ebb14ada8483f8c8043a1c8e8210 (diff)
downloadNim-5b27b263fd76484fa6251ccd29520c2764b55818.tar.gz
Remove immediate pragma (#11308)
* remove immediate from tests
* remove immediate from the compiler
Diffstat (limited to 'tests/parser')
-rw-r--r--tests/parser/toprprec.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/parser/toprprec.nim b/tests/parser/toprprec.nim
index 363ad1c18..e6a43d42e 100644
--- a/tests/parser/toprprec.nim
+++ b/tests/parser/toprprec.nim
@@ -3,7 +3,7 @@ discard """
 """
 # Test operator precedence:
 
-template `@` (x: untyped): untyped {.immediate.} =
+template `@@` (x: untyped): untyped =
   `self`.x
 
 template `@!` (x: untyped): untyped = x
@@ -15,11 +15,11 @@ type
   TA = tuple[a, b: int, obj: TO]
 
 proc init(self: var TA): string =
-  @a = 3
-  === @b = 4
-  @obj.x = 4
+  @@a = 3
+  === @@b = 4
+  @@obj.x = 4
   @! === result = "abc"
-  result = @b.`$`
+  result = @@b.`$`
 
 assert 3+5*5-2 == 28- -26-28