We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following program sample.go triggers a compile-time error:
sample.go
package main func main() { var u uint64 var v uint32 println(u << v) }
Expected result:
$ go run ./sample.go 0
Got:
$ yaegi ./sample.go x.go:6:10: mismatched types .uint64 and .uint32
In a way I find this amusing, as shifts are a bitch to get right in Go. Took us ages even to figure out the spec.
The text was updated successfully, but these errors were encountered:
mismatched types gioui.org/ui.pc and .
fix: shift operator inherits its type from first arg only
da69fdd
Make an exception for shift operators when computing the type and checking operands type consistency. Fix #308
8cd0926
Successfully merging a pull request may close this issue.
The following program
sample.go
triggers a compile-time error:Expected result:
Got:
In a way I find this amusing, as shifts are a bitch to get right in Go. Took us ages even to figure out the spec.
The text was updated successfully, but these errors were encountered: