| 1 |
This test case reproduced a panic due to a bug in objectpath |
| 2 |
on recursive interfaces (#70418). |
| 3 |
|
| 4 |
-- go.mod -- |
| 5 |
module example.com |
| 6 |
go 1.18 |
| 7 |
|
| 8 |
-- p/p.go -- |
| 9 |
package p |
| 10 |
|
| 11 |
type Anon = interface{ F() } //@implementation("F") |
| 12 |
|
| 13 |
type I interface { |
| 14 |
A(Anon) |
| 15 |
Z() |
| 16 |
Anon |
| 17 |
} |