unicode operator bugfixes (#18802)
This commit is contained in:
parent
e8dad482a3
commit
5c85e480a6
2 changed files with 63 additions and 47 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue