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
I actually hit something very similar recently, but with a regular iota and typed constants:
typeEnumintconst (
A=Enum(iota)
BC
)
This produced A=0, B=2, C=4 for unknown reason, breaking the code that assumed it's sequential.
I will try to make a similar small reproducer. For now I was unable to, so it might be caused by something other code in the package. Probably something interferes with these const definitions.
@mvertes Could you please tag the issue? Looks important. I will try to fix it.
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.15.1
Additional Notes
No response
The text was updated successfully, but these errors were encountered: