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
If a field in an object has an object variant type, the default value from that object variant type is ignored.
typeEnum=enum A, B
Object=objectcase a: Enum of A:
integer: int=200 of B:
time: stringSimple=object
v =-1Another=object
o =Object(a: A)
v: SimpleechoObject(a: A)
echoAnother()
Nim Version
Nim Compiler Version 2.1.1 [MacOSX: arm64]
Compiled at 2024-06-21
Copyright (c) 2006-2024 by Andreas Rumpf
git hash: 2bef087
active boot switches: -d:release
Current Output
(a: A, integer: 200)
(o: (a: A, integer: 0), v: (v: -1))
Expected Output
(a: A, integer: 200)
(o: (a: A, integer: 200), v: (v: -1))
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
If a field in an object has an object variant type, the default value from that object variant type is ignored.
Nim Version
Nim Compiler Version 2.1.1 [MacOSX: arm64]
Compiled at 2024-06-21
Copyright (c) 2006-2024 by Andreas Rumpf
git hash: 2bef087
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: