-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
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
cmd/gc: disagrees with spec in result of []byte("") #5704
Labels
Milestone
Comments
converting "" to []rune is also incorrect wrt the spec. http://play.golang.org/p/0k8nFTaa5g package main func main() { a := []byte(nil) b := []byte("") // "If the string is empty, the result is []byte(nil)." c := []rune(nil) d := []rune("") // "If the string is empty, the result is []rune(nil)." println(a, b, (a == nil) == (b == nil)) println(c, d, (c == nil) == (d == nil)) } |
https://golang.org/cl/10440045 Owner changed to @griesemer. |
This issue was closed by revision de47f68. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: