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
$ cat ~/f.go
package p
var x *missing.Type
func f() {
x.method()
}
$ go build gotype.go && ./gotype ~/f.go
/home/mvdan/f.go:3:8: undeclared name: missing
/home/mvdan/f.go:6:2: invalid operation: x (variable of type *invalid type) has no field or method method
This is clearly wrong - and the error goes away when I use var x missing.Type instead. Having a look in case it's a simple fix - seems to be because the operand's kind is not invalid when it should be.
Missed this in the prior submit.
For #24182.
Change-Id: If8349d39c80b7ff57bc0c857985f9e52241321b8
Reviewed-on: https://go-review.googlesource.com/116775
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This is clearly wrong - and the error goes away when I use
var x missing.Type
instead. Having a look in case it's a simple fix - seems to be because the operand's kind is notinvalid
when it should be./cc @griesemer
The text was updated successfully, but these errors were encountered: