| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 1 | Pre-existing gopls issues with line number changes should not be reported as regressions |
| 2 | |||||
| 3 | -- p.go -- | ||||
| 4 | package p | ||||
| 5 | |||||
| 6 | func F() { | ||||
| 7 | x := 42 | ||||
| 8 | } | ||||
| 9 | |||||
| 10 | -- .commit -- | ||||
| 11 | Initial commit with existing gopls issue | ||||
| 12 | |||||
| 13 | -- p.go -- | ||||
| 14 | package p | ||||
| 15 | |||||
| 16 | // Change the line number of the unused variable | ||||
| 17 | |||||
| 18 | func F() { | ||||
| 19 | x := 42 | ||||
| 20 | } | ||||
| 21 | |||||
| 22 | -- .commit -- | ||||
| 23 | Add comments that change line numbers | ||||
| 24 | |||||
| 25 | -- .run_test -- | ||||
| 26 | OK | ||||