cmd/compile: better error message for failed string conversion #23813
Comments
Has been like this for a while. Moving to 1.12. |
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:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: