Improves tobjasgn test.
This commit is contained in:
parent
00dc93b65b
commit
20e3ab70b2
1 changed files with 6 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
output: '''0 0
|
||||
output: '''8 5 0 0
|
||||
pre 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
|
||||
TSomeObj = object of TObject
|
||||
a: int
|
||||
a, b: int
|
||||
PSomeObj = ref object
|
||||
a: int
|
||||
a, b: int
|
||||
|
||||
var a = TSomeObj()
|
||||
var b = PSomeObj()
|
||||
echo a.a, " ", b.a
|
||||
var a = TSomeObj(a: 8)
|
||||
var b = PSomeObj(a: 5)
|
||||
echo a.a, " ", b.a, " ", a.b, " ", b.b
|
||||
|
||||
# bug #575
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue