Commit 9a04136
committed
gopls/internal/golang/stubmethods: refine crash into bug report
This CL refine an as-yet unreproducible crash into a bug report. It
seems clear that the code intended to check that sig != nil, yet instead
checked that sig.Results != nil. With that said, I don't think it's
possible to have a return statement without an enclosing signature. For
now, turn this into a bug report.
For golang/go#70666
Change-Id: I79031d437d643f6d70360e3abde86166176647b3
Reviewed-on: https://go-review.googlesource.com/c/tools/+/633375
Reviewed-by: Alan Donovan <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>1 parent 01e0b05 commit 9a04136
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
285 | | - | |
286 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
287 | 290 | | |
288 | 291 | | |
289 | 292 | | |
| |||
0 commit comments