Closed
Description
Compile with --gc:destructors
type
MyObject1* = object of RootObj
z*: string
MyObject2* = object of RootObj
x*: float
name*: string
subobj: MyObject1
case flag*: bool
of true: y*: float
of false: nil
var x = new(MyObject2)
Compiler fails with:
C:\nim-devel\lib\system.nim(1748, 8) Error: complex object initialization is not supported with --newruntime