]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/typeswitch3.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / typeswitch3.go
index a57889bc1dee4f66dd7276e746812f8dd6817938..2e144d81c00cef738b5ff3acadd19d1aedfa6ba3 100644 (file)
@@ -42,7 +42,7 @@ func main() {
 
 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:
        }
@@ -51,6 +51,6 @@ func noninterface() {
                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"
        }
 }