gopls/internal/test/marker/testdata/codeaction/inline-var-74347b.txt
raw| 1 | This is regression test of a second crash in |
| 2 | refactor.inline.variable covered by #74347. |
| 3 | |
| 4 | -- go.mod -- |
| 5 | module example.com/a |
| 6 | go 1.18 |
| 7 | |
| 8 | -- a/a.go -- |
| 9 | package a |
| 10 | |
| 11 | func _() { |
| 12 | type S struct{ F int } |
| 13 | x := S{F: 0} |
| 14 | _ = x //@codeaction("x", "refactor.inline.variable", result=out) |
| 15 | } |
| 16 | |
| 17 | -- @out/a/a.go -- |
| 18 | package a |
| 19 | |
| 20 | func _() { |
| 21 | type S struct{ F int } |
| 22 | x := S{F: 0} |
| 23 | _ = S{F: 0} //@codeaction("x", "refactor.inline.variable", result=out) |
| 24 | } |
| 25 |