github.com/mdempsky/go@v0.0.0-20151201204031-5dd372bd1e70/test/bugs/bug395.go (about)

     1  // skip
     2  
     3  // When issue 1909 is fixed, change from skip to compile.
     4  
     5  // 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
    11  
    12  package test
    13  
    14  type Foo interface {
    15  	Bar() interface {
    16  		Foo
    17  	}
    18  	Baz() interface {
    19  		Foo
    20  	}
    21  	Bug() interface {
    22  		Foo
    23  	}
    24  }