2012-02-17 04:49:59 +00:00
|
|
|
// errorcheck
|
2010-02-02 07:58:49 +00:00
|
|
|
|
2016-04-10 21:32:26 +00:00
|
|
|
// Copyright 2010 The Go Authors. All rights reserved.
|
2010-02-02 07:58:49 +00:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
2017-03-20 18:56:15 +00:00
|
|
|
type I1 interface { // GC_ERROR "invalid recursive type"
|
2010-02-02 07:58:49 +00:00
|
|
|
m() I2
|
2020-12-15 21:15:07 +00:00
|
|
|
I2
|
2010-02-02 07:58:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type I2 interface {
|
2017-03-20 18:56:15 +00:00
|
|
|
I1 // GCCGO_ERROR "loop|interface"
|
2010-02-02 07:58:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-11-07 20:35:13 +00:00
|
|
|
var i1 I1 = i2
|
2010-02-02 07:58:49 +00:00
|
|
|
var i2 I2
|
|
|
|
var i2a I2 = i1
|