The following code causes a SIGSEGV error. Are there tools such as linters that can flag this bad logic?
package main
// Person is ...
type Person interface {
M()
}
func main() {
var i Person
i.M()
}
golint does not detect this.