2014-12-18 10:34:12 -08:00
|
|
|
// skip
|
2012-01-17 10:00:57 +01:00
|
|
|
|
2014-12-18 10:34:12 -08:00
|
|
|
// When issue 1909 is fixed, change from skip to compile.
|
2012-09-23 13:16:14 -04:00
|
|
|
|
2012-01-17 10:00:57 +01:00
|
|
|
// Copyright 2011 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.
|
|
|
|
|
|
|
|
|
|
// Issue 1909
|
|
|
|
|
// Would OOM due to exponential recursion on Foo's expanded methodset in nodefmt
|
2014-12-18 10:34:12 -08:00
|
|
|
|
2012-01-17 10:00:57 +01:00
|
|
|
package test
|
|
|
|
|
|
|
|
|
|
type Foo interface {
|
2012-01-20 17:14:09 -05:00
|
|
|
Bar() interface {
|
|
|
|
|
Foo
|
|
|
|
|
}
|
|
|
|
|
Baz() interface {
|
|
|
|
|
Foo
|
|
|
|
|
}
|
|
|
|
|
Bug() interface {
|
|
|
|
|
Foo
|
|
|
|
|
}
|
2012-01-17 10:00:57 +01:00
|
|
|
}
|