Debian Codegraph @

go/ssa/testdata/fixedbugs/issue66783a.go

raw symbols SCIP
1 //go:build ignore
2 // +build ignore
3
4 package issue66783a
5
6 type S[T any] struct {
7 a T
8 }
9
10 func (s S[T]) M() {
11 type A S[T]
12 type B[U any] A
13 _ = B[rune](s)
14 }
15
16 // M[int]
17
18 // panic: in (issue66783a.S[int]).M[int]:
19 // cannot convert term *t0 (issue66783a.S[int] [within struct{a int}])
20 // to type issue66783a.B[rune] [within struct{a T}] [recovered]
21
22 func M() {
23 S[int]{}.M()
24 }