gopls/internal/test/marker/testdata/rename/issue61813.txt
raw| 1 | This test exercises the panic reported in golang/go#61813. |
| 2 | |
| 3 | -- p.go -- |
| 4 | package p |
| 5 | |
| 6 | type P struct{} |
| 7 | |
| 8 | func (P) M() {} //@rename("M", "N", MToN) |
| 9 | |
| 10 | var _ = []*P{{}} |
| 11 | -- @MToN/p.go -- |
| 12 | @@ -5 +5 @@ |
| 13 | -func (P) M() {} //@rename("M", "N", MToN) |
| 14 | +func (P) N() {} //@rename("M", "N", MToN) |