2019-05-06 16:26:15 -07:00
|
|
|
// errorcheck
|
2018-06-06 10:21:15 -07: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 14:54:21 -07:00
|
|
|
type I1 = interface {
|
2018-06-06 10:21:15 -07:00
|
|
|
I2
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-29 02:11:10 -07:00
|
|
|
// BAD: type loop should mention I1; see also #41669
|
2020-12-09 12:28:15 -08:00
|
|
|
type I2 interface { // ERROR "invalid recursive type I2\n\tLINE: I2 refers to\n\tLINE: I2$|invalid recursive type"
|
2018-06-06 10:21:15 -07:00
|
|
|
I1
|
|
|
|
|
}
|