-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect bitmask parsing or handling behaviour #1591
Comments
Confirm that it still happens on I actually hit something very similar recently, but with a regular iota and typed constants: type Enum int
const (
A = Enum(iota)
B
C
) This produced 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. |
Actually, here's a small reproducer for my case: package main
const (
A = Enum(iota)
B
C
)
type Enum int
func main() {
println(A, B, C)
} This should produce |
Sorry for the noise, my issue appears to be different. Opened #1596. |
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: