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
https://play.golang.org/p/8ADwHokqcK5 complains with:
prog.go:6:12: cannot use x (type []T) as type []byte in argument to runtime.slicebytetostring
The error message should not mention runtime.slicebytetostring which is an implementation detail.
runtime.slicebytetostring
(There are probably more error situations that expose runtime calls this way. Should handle them all uniformly.)
The text was updated successfully, but these errors were encountered:
Has been like this for a while. Moving to 1.12.
Sorry, something went wrong.
We should wait with fixing this depending on the resolution of #23536. It's not just go/types. The compiler also seems not consistent.
The error has gotten worse:
./prog.go:6:12: cannot use <node SPTR> (type *T) as type *byte in argument to runtime.slicebytetostring
This is now working without error in Go 1.18. Closing.
No branches or pull requests
https://play.golang.org/p/8ADwHokqcK5 complains with:
The error message should not mention
runtime.slicebytetostring
which is an implementation detail.(There are probably more error situations that expose runtime calls this way. Should handle them all uniformly.)
The text was updated successfully, but these errors were encountered: