blob: 43633557d89b7ee1490f358a1a04ea17ebe95b0f [file] [log] [blame]
This test verifies that method stubbing qualifies types relative to the current
package.
-- p.go --
package p
import "io"
type B struct{}
type I interface {
M(io.Reader, B)
}
type A struct{}
var _ I = &A{} //@suggestedfix(re"&A..", re"missing method M", "quickfix", stub)
-- @stub/p.go --
package p
import "io"
type B struct{}
type I interface {
M(io.Reader, B)
}
type A struct{}
// M implements I.
func (*A) M(io.Reader, B) {
panic("unimplemented")
}
var _ I = &A{} //@suggestedfix(re"&A..", re"missing method M", "quickfix", stub)