2012-02-17 08:49:30 +04:00
|
|
|
// errorcheck
|
2009-08-22 04:42:41 +04:00
|
|
|
|
|
|
|
// Copyright 2009 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 main
|
|
|
|
|
2020-09-29 12:11:10 +03:00
|
|
|
type I1 interface{ I2 } // ERROR "interface"
|
2009-08-22 04:42:41 +04:00
|
|
|
type I2 int
|
|
|
|
|
2020-09-29 12:11:10 +03:00
|
|
|
type I3 interface{ int } // ERROR "interface"
|
2009-08-22 08:30:24 +04:00
|
|
|
|
|
|
|
type S struct {
|
2020-09-29 12:11:10 +03:00
|
|
|
x interface{ S } // ERROR "interface"
|
2009-08-22 08:30:24 +04:00
|
|
|
}
|
2020-09-29 12:11:10 +03:00
|
|
|
type I4 interface { // GC_ERROR "invalid recursive type I4\n\tLINE: I4 refers to\n\tLINE: I4$"
|
|
|
|
I4 // GCCGO_ERROR "interface"
|
2009-08-22 08:30:24 +04:00
|
|
|
}
|
|
|
|
|
2020-09-29 12:11:10 +03:00
|
|
|
type I5 interface { // GC_ERROR "invalid recursive type I5\n\tLINE: I5 refers to\n\tLINE+4: I6 refers to\n\tLINE: I5$"
|
2020-12-16 00:15:07 +03:00
|
|
|
I6
|
2009-08-22 08:30:24 +04:00
|
|
|
}
|
|
|
|
|
2019-08-31 00:54:21 +03:00
|
|
|
type I6 interface {
|
2020-09-29 12:11:10 +03:00
|
|
|
I5 // GCCGO_ERROR "interface"
|
2009-08-22 08:30:24 +04:00
|
|
|
}
|