2014-12-18 11:34:12 -07:00
|
|
|
// skip
|
2012-01-17 02:00:57 -07:00
|
|
|
|
2014-12-18 11:34:12 -07:00
|
|
|
// When issue 1909 is fixed, change from skip to compile.
|
2012-09-23 11:16:14 -06:00
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2012-01-17 02:00:57 -07:00
|
|
|
// 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 11:34:12 -07:00
|
|
|
|
2012-01-17 02:00:57 -07:00
|
|
|
package test
|
|
|
|
|
|
|
|
type Foo interface {
|
2012-01-20 15:14:09 -07:00
|
|
|
Bar() interface {
|
|
|
|
Foo
|
|
|
|
}
|
|
|
|
Baz() interface {
|
|
|
|
Foo
|
|
|
|
}
|
|
|
|
Bug() interface {
|
|
|
|
Foo
|
|
|
|
}
|
2012-01-17 02:00:57 -07:00
|
|
|
}
|