You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeMyObjectRef=refobject
a,b: intMyContainerObject=refobject
member: MyObjectRefprocfoobar(dst: varMyObjectRef) =
dst =new(MyObjectRef)
dst.a =123
dst.b =321proctest() =# when it comes from a var, it worksvar y: MyObjectReffoobar(y)
echo y !=nil# when it comes from a member, it fails on VMvar x =new(MyContainerObject)
foobar(x.member)
echo x.member !=niltest()
static:
test()
Example
Current Output
Expected Output
Additional Information
Nim/lib/pure/json.nim
Line 1051 in 2ccd1c3
The text was updated successfully, but these errors were encountered: