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
This code (playgound)
package main type t map[int]int func main() { t := map[int]int{} map[int]int(t)[1] = 2 println("ok") }
compiles and runs ok, but clicking Format fails because go/parser reports
Format
7:2: expected statement, found 'map' (and 1 more errors).
7:2: expected statement, found 'map' (and 1 more errors)
The text was updated successfully, but these errors were encountered:
Already fixed on tip.
Sorry, something went wrong.
No branches or pull requests
This code (playgound)
compiles and runs ok, but clicking
Format
fails because go/parser reports7:2: expected statement, found 'map' (and 1 more errors)
.The text was updated successfully, but these errors were encountered: