]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/fixedbugs/issue30087.go
[dev.typeparams] all: merge dev.regabi (07569da) into dev.typeparams
[gostls13.git] / test / fixedbugs / issue30087.go
index a8f6202329e860fdd5a32544016a8407d04794ba..3e4b0324a3765404a0dfd9daf10020829dee669d 100644 (file)
@@ -7,8 +7,9 @@
 package main
 
 func main() {
-       var a, b = 1    // ERROR "assignment mismatch: 2 variables but 1 value|wrong number of initializations"
-       _ = 1, 2        // ERROR "assignment mismatch: 1 variable but 2 values|number of variables does not match"
-       c, d := 1       // ERROR "assignment mismatch: 2 variables but 1 value|wrong number of initializations"
-       e, f := 1, 2, 3 // ERROR "assignment mismatch: 2 variables but 3 values|wrong number of initializations"
+       var a, b = 1    // ERROR "assignment mismatch: 2 variables but 1 value|wrong number of initializations|cannot initialize"
+       _ = 1, 2        // ERROR "assignment mismatch: 1 variable but 2 values|number of variables does not match|cannot assign"
+       c, d := 1       // ERROR "assignment mismatch: 2 variables but 1 value|wrong number of initializations|cannot initialize"
+       e, f := 1, 2, 3 // ERROR "assignment mismatch: 2 variables but 3 values|wrong number of initializations|cannot initialize"
+       _, _, _, _ = c, d, e, f
 }