compiler: handle nested unsigned shift being untyped after type resolution (#5497)

* apply compiler patch for fix of #5496

* add compiler/testdata smoketest

* make diff error more explicit on difference

* apply golden fix
This commit is contained in:
Pat Whittingslow
2026-07-22 02:35:18 -03:00
committed by GitHub
parent 3ad913acb8
commit b536dd6f79
4 changed files with 66 additions and 28 deletions
+5
View File
@@ -66,6 +66,11 @@ func complexSub(x, y complex64) complex64 {
return x - y
}
func shiftNested(x uint64) uint64 {
k := 3
return x >> (1 << k) // https://github.com/tinygo-org/tinygo/issues/5496
}
func complexMul(x, y complex64) complex64 {
return x * y
}