package main type I interface { F() } type T struct{} func (T) F() {} func main() { switch I(T{}).(type) { case interface{}: // do nothing } }