func noninterface() {
var i int
- switch i.(type) { // ERROR "cannot type switch on non-interface value|not an interface type"
+ switch i.(type) { // ERROR "cannot type switch on non-interface value|not an interface"
case string:
case int:
}
name string
}
var s S
- switch s.(type) { // ERROR "cannot type switch on non-interface value|not an interface type"
+ switch s.(type) { // ERROR "cannot type switch on non-interface value|not an interface"
}
}