Improves tobjasgn test.

This commit is contained in:
Dominik Picheta 2014-04-18 23:31:45 +01:00
commit 20e3ab70b2

View file

@ -1,5 +1,5 @@
discard """ discard """
output: '''0 0 output: '''8 5 0 0
pre test a:test b:1 c:2 haha:3 pre test a:test b:1 c:2 haha:3
assignment test a:test b:1 c:2 haha:3 assignment test a:test b:1 c:2 haha:3
''' '''
@ -9,13 +9,13 @@ assignment test a:test b:1 c:2 haha:3
type type
TSomeObj = object of TObject TSomeObj = object of TObject
a: int a, b: int
PSomeObj = ref object PSomeObj = ref object
a: int a, b: int
var a = TSomeObj() var a = TSomeObj(a: 8)
var b = PSomeObj() var b = PSomeObj(a: 5)
echo a.a, " ", b.a echo a.a, " ", b.a, " ", a.b, " ", b.b
# bug #575 # bug #575