2012-02-16 21:49:59 -07:00
|
|
|
// errorcheck
|
2010-02-02 00:58:49 -07:00
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2010 The Go Authors. All rights reserved.
|
2010-02-02 00:58:49 -07: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 12:56:15 -06:00
|
|
|
type I1 interface { // GC_ERROR "invalid recursive type"
|
2010-02-02 00:58:49 -07:00
|
|
|
m() I2
|
2020-12-15 14:15:07 -07:00
|
|
|
I2
|
2010-02-02 00:58:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type I2 interface {
|
2017-03-20 12:56:15 -06:00
|
|
|
I1 // GCCGO_ERROR "loop|interface"
|
2010-02-02 00:58:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-11-07 13:35:13 -07:00
|
|
|
var i1 I1 = i2
|
2010-02-02 00:58:49 -07:00
|
|
|
var i2 I2
|
|
|
|
var i2a I2 = i1
|