github.com/tcnksm/go@v0.0.0-20141208075154-439b32936367/test/bugs/bug395.go (about) 1 // echo bug395 is broken # takes 90+ seconds to break 2 // # $G $D/$F.go || echo bug395 3 4 // NOTE: This test is not run by 'run.go' and so not run by all.bash. 5 // To run this test you must use the ./run shell script. 6 7 // Copyright 2011 The Go Authors. All rights reserved. 8 // Use of this source code is governed by a BSD-style 9 // license that can be found in the LICENSE file. 10 11 // Issue 1909 12 // Would OOM due to exponential recursion on Foo's expanded methodset in nodefmt 13 package test 14 15 type Foo interface { 16 Bar() interface { 17 Foo 18 } 19 Baz() interface { 20 Foo 21 } 22 Bug() interface { 23 Foo 24 } 25 }