old pointer deref operator completely removed
This commit is contained in:
parent
246b8d18a1
commit
a6daf71520
12 changed files with 83 additions and 20 deletions
15
tests/accept/run/tanontuples.nim
Normal file
15
tests/accept/run/tanontuples.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
discard """
|
||||
output: "61, 125"
|
||||
"""
|
||||
|
||||
proc `^` (a, b: int): int =
|
||||
result = 1
|
||||
for i in 1..b: result = result * a
|
||||
|
||||
var m = (0, 5)
|
||||
var n = (56, 3)
|
||||
|
||||
m = (n[0] + m[1], m[1] ^ n[1])
|
||||
|
||||
echo m[0], ", ", m[1]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue