This commit is contained in:
yglukhov 2015-05-26 16:00:48 +03:00
commit d3c4c7c52f
2 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,20 @@
discard """
output: '''5
'''
"""
# bug #2798
type Inner = object
value: int
type Outer = object
i: Inner
proc test(i: var Inner) =
i.value += 5
var o: Outer
test(o.i)
echo o.i.value