Debian Codegraph @

staticcheck/sa4020/testdata/go1.18/CheckUnreachableTypeCases/typeparams.go

raw
1 package pkg
2
3 func tp1[T any](x interface{}) {
4 switch x.(type) {
5 case T:
6 case int:
7 }
8 }