mirror of
https://github.com/golang/go
synced 2024-11-14 07:20:22 -07:00
dc0388c565
This change is a simple work-around to avoid a compiler crash and provide a reasonable error message. A future change should fix the root cause for this problem. Fixes #23823. Change-Id: Ifc80d9f4d35e063c378e54d5cd8d1cf4c0d2ec6a Reviewed-on: https://go-review.googlesource.com/c/go/+/175518 Reviewed-by: Ian Lance Taylor <iant@golang.org>
16 lines
275 B
Go
16 lines
275 B
Go
// errorcheck
|
|
|
|
// 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
|
|
|
|
type I1 = interface {
|
|
I2
|
|
}
|
|
|
|
type I2 interface { // ERROR "invalid recursive type"
|
|
I1
|
|
}
|