summary refs log tree commit diff stats
path: root/tests/lexer/tunicode_operators.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-09-04 17:49:27 +0200
committerGitHub <noreply@github.com>2021-09-04 17:49:27 +0200
commit5c85e480a6a13ac12c69f7e5500322eb5474be11 (patch)
treeb82f49bcddef15786780939a94efb826d119a11d /tests/lexer/tunicode_operators.nim
parente8dad482a309b1c33056aba22550d691845414d7 (diff)
downloadNim-5c85e480a6a13ac12c69f7e5500322eb5474be11.tar.gz
unicode operator bugfixes (#18802)
Diffstat (limited to 'tests/lexer/tunicode_operators.nim')
-rw-r--r--tests/lexer/tunicode_operators.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lexer/tunicode_operators.nim b/tests/lexer/tunicode_operators.nim
index 74fcbb763..6ad40beab 100644
--- a/tests/lexer/tunicode_operators.nim
+++ b/tests/lexer/tunicode_operators.nim
@@ -5,8 +5,10 @@ proc `⊙=`(x: var int, y: int) = x *= y
 
 proc `⊞++`(x, y: int): int = x + y
 
+const a = 9
+
 var x = 45
-x ⊙= 9 ⊞++ 4 ⊙ 3
+x ⊙= a⊞++4⊙3
 
 var y = 45
 y *= 9 + 4 * 3