]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/blank1.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / blank1.go
index c9a8e6a290497152756676866e014f334652f818..815a7e9b5a8b5eda5314acaaf676207583fea9af 100644 (file)
@@ -13,7 +13,7 @@ var t struct {
        _ int
 }
 
-func (x int) _() { // ERROR "cannot define new methods on non-local type"
+func (x int) _() { // ERROR "methods on non-local type"
        println(x)
 }
 
@@ -25,8 +25,8 @@ func main() {
        _()     // ERROR "cannot use .* as value"
        x := _+1        // ERROR "cannot use .* as value"
        _ = x
-       _ = t._ // ERROR "cannot refer to blank field|invalid use of"
+       _ = t._ // ERROR "cannot refer to blank field|invalid use of|t._ undefined"
 
       var v1, v2 T
-      _ = v1 == v2 // ERROR "cannot be compared|non-comparable"
+      _ = v1 == v2 // ERROR "cannot be compared|non-comparable|cannot compare v1 == v2"
 }