blob: c596ad13c9289334686d4375ec7d565348af68aa [file] [log] [blame]
This test checks that rename fails in the presence of errors.
-- go.mod --
module golang.org/lsptests/bad
go 1.18
-- bad.go --
package bad
type myStruct struct {
}
func (s *myStruct) sFunc() bool { //@renameerr("sFunc", "rFunc", re"not possible")
return s.Bad //@diag("Bad", re"no field or method")
}
-- bad_test.go --
package bad