Fixes #1005
This commit is contained in:
parent
21d0cc8cdf
commit
9e7c0fd2b0
2 changed files with 13 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue