test/fixedbugs/issue15470.dir/a.go
raw| 1 | package a |
| 2 | |
| 3 | import "io" |
| 4 | |
| 5 | type T interface { |
| 6 | M0(_ int) |
| 7 | M1(x, _ int) // _ (blank) caused crash |
| 8 | M2() (x, _ int) |
| 9 | } |
| 10 | |
| 11 | type S struct{} |
| 12 | |
| 13 | func (S) M0(_ int) {} |
| 14 | func (S) M1(x, _ int) {} |
| 15 | func (S) M2() (x, _ int) { return } |
| 16 | func (_ S) M3() {} |
| 17 | |
| 18 | // Snippet from x/tools/godoc/analysis/analysis.go. |
| 19 | // Offending code from #5470. |
| 20 | type Link interface { |
| 21 | Start() int |
| 22 | End() int |
| 23 | Write(w io.Writer, _ int, start bool) // _ (blank) caused crash |
| 24 | } |