Debian Codegraph @

test/fixedbugs/issue44266.go

raw
1 // errorcheck
2
3 // Copyright 2021 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package p
8
9 import "io"
10
11 type T1 interface {
12 io.Reader
13 }
14
15 type T2 struct {
16 io.SectionReader
17 }
18
19 type T3 struct { // ERROR "invalid recursive type: T3 refers to itself"
20 T1
21 T2
22 parent T3
23 }