Debian Codegraph @

staticcheck/sa4023/testdata/go1.9/CheckTypedNilInterface/CheckTypedNilInterface.go

raw
1 package pkg
2
3 type any = interface{}
4
5 func test() {
6 _ = any((*int)(nil)) == nil //@ diag(`never true`)
7 _ = any((error)(nil)) == nil
8 }