]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/switch3.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / switch3.go
index 28705e464ef2c20949e7298fe1072a24fe2ab2df..403563223c7d11d7bbd82ace8e84e5d76538465f 100644 (file)
@@ -28,21 +28,21 @@ func bad() {
        var m, m1 map[int]int
        switch m {
        case nil:
-       case m1: // ERROR "can only compare map m to nil|map can only be compared to nil"
+       case m1: // ERROR "can only compare map m to nil|map can only be compared to nil|cannot compare"
        default:
        }
 
        var a, a1 []int
        switch a {
        case nil:
-       case a1: // ERROR "can only compare slice a to nil|slice can only be compared to nil"
+       case a1: // ERROR "can only compare slice a to nil|slice can only be compared to nil|cannot compare"
        default:
        }
 
        var f, f1 func()
        switch f {
        case nil:
-       case f1: // ERROR "can only compare func f to nil|func can only be compared to nil"
+       case f1: // ERROR "can only compare func f to nil|func can only be compared to nil|cannot compare"
        default:
        }