github.com/traefik/yaegi@v0.15.1/_test/issue-1454.go (about) 1 package main 2 3 type I2 interface { 4 I2() string 5 } 6 7 type I interface { 8 I2 9 } 10 11 type S struct{} 12 13 func (*S) I2() string { return "foo" } 14 15 func main() { 16 var i I 17 _, ok := i.(*S) 18 println(ok) 19 } 20 21 // Output: 22 // false