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
The Enum2 is correctly handled by gta, nothing interesting there. The type is registered upfront, so constant can be computed immediately.
However for Enum1 case it fails to compute the constant, thus pushing it to revisit list. Later is hits bothCFG iota increment and GTA iota increment.
Actually, completely removing this GTA iota reset/increment code passes all the tests including the new one, so I'm wondering if it's needed there at all 🤔
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
f5b5481
Additional Notes
Moving
type Enum int
beforeconst
fixes the issue.The text was updated successfully, but these errors were encountered: