Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 416 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 416 Bytes

typednil

pkg.go.dev

typednil finds a comparison between typed nil and untyped nil.

func f() {
	err := e()
	if err != nil { // true
		print(err)
	}
}

func e() error {
	var err *struct{error}
	return err
}