diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/assign/tobjasgn.nim | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/assign/tobjasgn.nim b/tests/assign/tobjasgn.nim index 5f411063f..da12319cd 100644 --- a/tests/assign/tobjasgn.nim +++ b/tests/assign/tobjasgn.nim @@ -1,16 +1,21 @@ discard """ - output: '''0 + output: '''0 0 pre test a:test b:1 c:2 haha:3 assignment test a:test b:1 c:2 haha:3 ''' """ -type TSomeObj = object of TObject - Variable: int +# bug #1005 + +type + TSomeObj = object of TObject + a: int + PSomeObj = ref object + a: int var a = TSomeObj() - -echo a.Variable.`$` +var b = PSomeObj() +echo a.a, " ", b.a # bug #575 |