Skip to content

Analyzer: typednil finds a comparison between typed nil and untyped nil

License

Notifications You must be signed in to change notification settings

gostaticanalysis/typednil

Repository files navigation

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
}

About

Analyzer: typednil finds a comparison between typed nil and untyped nil

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages