summary refs log tree commit diff stats
path: root/tests/parser/toprprec.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parser/toprprec.nim')
-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