☰
Debian Codegraph
@
2026.2.1-1
2026.1-4
2026.1-3
/
/
staticcheck
/
sa4020
/
testdata
/
go1.18
/
CheckUnreachableTypeCases
/
typeparams.go
☽
☼
staticcheck/sa4020/testdata/go1.18/CheckUnreachableTypeCases/typeparams.go
code
plain
raw
Expat
2016-2017 Dominik Honnef
debian/copyright
1
package pkg
2
3
func tp1[T any](x interface{}) {
4
switch x.(type) {
5
case T:
6
case int:
7
}
8
}