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
1. What is a short input program that triggers the error?
package foo
type Foo interface {
X()
}
func Test(f Foo) {
_ = f.(struct{Foo})
}
package main
import (
"local/foo"
)
func main() {
foo.Test(nil)
}
2. What is the full compiler output?
./tst.go:3: impossible type assertion:
struct {} does not implement foo.Foo (missing X method)
./tst.go:7: internal compiler error: typename <T>
3. What version of the compiler are you using? (Run it with the -V flag.)
6g version go1.1.2
This might be the same as issue #5974.
The text was updated successfully, but these errors were encountered:
This is issue #5910, it's fixed at tip. issue #5910 remains open for the special case of
embedded builtins which is still broken.
See revision 56696c13acef.
The text was updated successfully, but these errors were encountered: