diff options
Diffstat (limited to 'tests/compile/timplictderef.nim')
-rw-r--r-- | tests/compile/timplictderef.nim | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/compile/timplictderef.nim b/tests/compile/timplictderef.nim deleted file mode 100644 index 99b0b645b..000000000 --- a/tests/compile/timplictderef.nim +++ /dev/null @@ -1,18 +0,0 @@ -discard """ - output: "2" -""" - -type - TValue* {.pure, final.} = object of TObject - a: int - PValue = ref TValue - PPValue = ptr PValue - - -var x: PValue -new x -var sp: PPValue = addr x - -sp.a = 2 -if sp.a == 2: echo 2 # with sp[].a the error is gone - |