Josh Bleecher Snyder | e7173df | 2014-12-18 10:34:12 -0800 | [diff] [blame] | 1 | // skip |
Luuk van Dijk | 9523b4d | 2012-01-17 10:00:57 +0100 | [diff] [blame] | 2 | |
Josh Bleecher Snyder | e7173df | 2014-12-18 10:34:12 -0800 | [diff] [blame] | 3 | // When issue 1909 is fixed, change from skip to compile. |
Russ Cox | cd22afa | 2012-09-23 13:16:14 -0400 | [diff] [blame] | 4 | |
Luuk van Dijk | 9523b4d | 2012-01-17 10:00:57 +0100 | [diff] [blame] | 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 |
Josh Bleecher Snyder | e7173df | 2014-12-18 10:34:12 -0800 | [diff] [blame] | 11 | |
Luuk van Dijk | 9523b4d | 2012-01-17 10:00:57 +0100 | [diff] [blame] | 12 | package test |
| 13 | |
| 14 | type Foo interface { |
Russ Cox | 290e68b | 2012-01-20 17:14:09 -0500 | [diff] [blame] | 15 | Bar() interface { |
| 16 | Foo |
| 17 | } |
| 18 | Baz() interface { |
| 19 | Foo |
| 20 | } |
| 21 | Bug() interface { |
| 22 | Foo |
| 23 | } |
Luuk van Dijk | 9523b4d | 2012-01-17 10:00:57 +0100 | [diff] [blame] | 24 | } |