blob: 5490a3d7867c581086b40bec26691240bea34bae [file] [log] [blame]
Josh Bleecher Snydere7173df2014-12-18 10:34:12 -08001// skip
Luuk van Dijk9523b4d2012-01-17 10:00:57 +01002
Josh Bleecher Snydere7173df2014-12-18 10:34:12 -08003// When issue 1909 is fixed, change from skip to compile.
Russ Coxcd22afa2012-09-23 13:16:14 -04004
Luuk van Dijk9523b4d2012-01-17 10:00:57 +01005// Copyright 2011 The Go Authors. All rights reserved.
6// Use of this source code is governed by a BSD-style
7// license that can be found in the LICENSE file.
8
9// Issue 1909
10// Would OOM due to exponential recursion on Foo's expanded methodset in nodefmt
Josh Bleecher Snydere7173df2014-12-18 10:34:12 -080011
Luuk van Dijk9523b4d2012-01-17 10:00:57 +010012package test
13
14type Foo interface {
Russ Cox290e68b2012-01-20 17:14:09 -050015 Bar() interface {
16 Foo
17 }
18 Baz() interface {
19 Foo
20 }
21 Bug() interface {
22 Foo
23 }
Luuk van Dijk9523b4d2012-01-17 10:00:57 +010024}