diff options
author | Araq <rumpf_a@web.de> | 2011-04-11 23:28:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-04-11 23:28:53 +0200 |
commit | 46c41e43690cba9bc1caff6a994bb6915df8a1b7 (patch) | |
tree | c96be792eceb1d189cdb5bcff6e1a06f9b51e76c /tests/accept/compile | |
parent | 3d696c3da53e5c41d839d8265fbc94f1c64980bb (diff) | |
download | Nim-46c41e43690cba9bc1caff6a994bb6915df8a1b7.tar.gz |
p[] instead of p^
Diffstat (limited to 'tests/accept/compile')
-rwxr-xr-x | tests/accept/compile/trepr.nim | 2 | ||||
-rwxr-xr-x | tests/accept/compile/tstrace.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/accept/compile/trepr.nim b/tests/accept/compile/trepr.nim index 4a56842f6..b15081e48 100755 --- a/tests/accept/compile/trepr.nim +++ b/tests/accept/compile/trepr.nim @@ -22,7 +22,7 @@ p.s[1] = "xyz" p.e = en6 new(q) -q^ = p +q[] = p s = @[q, q, q, q] diff --git a/tests/accept/compile/tstrace.nim b/tests/accept/compile/tstrace.nim index 56f20a0dd..3032a34a3 100755 --- a/tests/accept/compile/tstrace.nim +++ b/tests/accept/compile/tstrace.nim @@ -8,7 +8,7 @@ proc recTest(i: int) = recTest(i+1) else: # should printStackTrace() var p: ptr int = nil - p^ = 12 + p[] = 12 # leave {.pop.} |