blob: ae64bbff924b40902a8750912fb2f09e7fd211c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
discard """
matrix: "--mm:orc"
"""
type
Foo = object
y: int
Bar = object
x: Foo
proc baz(state: var Bar):int =
state.x.y = 2
state.x.y
doAssert baz((ref Bar)(x: (new Foo)[])[]) == 2
|