You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know compilers are supposed to implement the spec, but I have admit my first reaction to this is: “Then don’t do that.” Though I think the official way to spell that is: Low priority. :)
package main
varstatictmp_0string// Also fails with these// type statictmp_0 struct{}// type statictmp_0 interface{}funcmain() {
a:= []int{7}
println(a)
}
Also fails with structs and interfaces. Are there other reserved keywords like these ?
Maybe good to document them in case this doesn't make it to 1.11.
What version of Go are you using (
go version
)?go version go1.10.1 linux/amd64
andgo version devel +5f5168e Thu Apr 26 18:59:07 2018 +0000 linux/amd64
What did you do?
compiling this produces the error:
The text was updated successfully, but these errors were encountered: