* add test case * refactoring transformAddrDeref and fix #18079 * fix jsgen
This commit is contained in:
parent
12a20b9fb6
commit
ecc8f61fe4
4 changed files with 38 additions and 9 deletions
11
tests/misc/t18079.nim
Normal file
11
tests/misc/t18079.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue