Files
Marc VertesandGitHub 056fa193e5 interp: fix a missing implicit type conversion for binary expression
When parsing binary operator expressions, make sure that implicit type conversions for untyped expressions are performed. It involves walking the sub-expression subtree at post-processing of binary expressions.

Fixes #1653.
2024-07-30 19:54:04 +02:00

13 lines
116 B
Go

package main
func f(b uint) uint {
return uint(1) + (0x1 >> b)
}
func main() {
println(f(1))
}
// Output:
// 1