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
http://tip.golang.org/ref/spec#Selector says "The identifier f is called the (field
or method) selector; it must not be the blank identifier.", yet:
$ cat tst.go
package main
type foo struct {
_ int
}
func f() int {
a := foo{42}
return a._
}
func main() {
println(f())
}
$ ~/src/go/bin/go build tst.go
$ ./tst
42
$ ~/src/go/bin/go version
go version devel +981ed43b6f82 Mon Feb 11 11:56:49 2013 +1100 darwin/amd64
Also at:
http://play.golang.org/p/Ya_L00b9iy
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: