summary refs log tree commit diff stats
path: root/tests/accept/compile
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-04-11 23:28:53 +0200
committerAraq <rumpf_a@web.de>2011-04-11 23:28:53 +0200
commit46c41e43690cba9bc1caff6a994bb6915df8a1b7 (patch)
treec96be792eceb1d189cdb5bcff6e1a06f9b51e76c /tests/accept/compile
parent3d696c3da53e5c41d839d8265fbc94f1c64980bb (diff)
downloadNim-46c41e43690cba9bc1caff6a994bb6915df8a1b7.tar.gz
p[] instead of p^
Diffstat (limited to 'tests/accept/compile')
-rwxr-xr-xtests/accept/compile/trepr.nim2
-rwxr-xr-xtests/accept/compile/tstrace.nim2
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.}