mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 03:53:42 +00:00
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:
Vendored
+5
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user