2019-05-06 17:26:15 -06:00
|
|
|
// errorcheck
|
2018-06-06 11:21:15 -06:00
|
|
|
|
|
|
|
// Copyright 2018 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package p
|
|
|
|
|
2019-08-30 15:54:21 -06:00
|
|
|
type I1 = interface {
|
2018-06-06 11:21:15 -06:00
|
|
|
I2
|
|
|
|
}
|
|
|
|
|
2020-09-29 03:11:10 -06:00
|
|
|
// BAD: type loop should mention I1; see also #41669
|
2020-12-09 13:28:15 -07:00
|
|
|
type I2 interface { // ERROR "invalid recursive type I2\n\tLINE: I2 refers to\n\tLINE: I2$|invalid recursive type"
|
2018-06-06 11:21:15 -06:00
|
|
|
I1
|
|
|
|
}
|