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 7package p 8 9import "io" 10 11type T1 interface { 12 io.Reader 13} 14 15type T2 struct { 16 io.SectionReader 17} 18 19type T3 struct { // ERROR "invalid recursive type: T3 refers to itself" 20 T1 21 T2 22 parent T3 23} 24