Source file
test/fixedbugs/issue56103.go
1
2
3
4
5
6
7 package p
8
9
10 type i interface{ m() interface{ i } }
11 type _ interface{ i }
12
13
14 type j interface{ m() interface{ k } }
15 type k interface{ m() interface{ j } }
16
17
18 type (
19 a interface {
20 m() interface {
21 a
22 b
23 }
24 }
25 b interface {
26 m() interface {
27 a
28 b
29 }
30 }
31 )
32
33
34 func _() { type i interface{ m() *interface{ i } } }
35 func _() { type i interface{ m() []interface{ i } } }
36 func _() { type i interface{ m() [0]interface{ i } } }
37 func _() { type i interface{ m() chan interface{ i } } }
38 func _() { type i interface{ m() map[interface{ i }]int } }
39 func _() { type i interface{ m() map[int]interface{ i } } }
40 func _() { type i interface{ m() func(interface{ i }) } }
41 func _() { type i interface{ m() func() interface{ i } } }
42 func _() {
43 type i interface {
44 m() struct{ i interface{ i } }
45 }
46 }
47
View as plain text