]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/used.go
[dev.typeparams] all: merge dev.regabi (07569da) into dev.typeparams
[gostls13.git] / test / used.go
index a3f0e1270befedfe73ce5bfdd78f52ea5ba50bde..5bdc5a731886913c393b42177ffc17964fbc4579 100644 (file)
@@ -63,6 +63,7 @@ func _() {
        _ = f1()               // ok
        _, _ = f2()            // ok
        _ = f2()               // ERROR "assignment mismatch: 1 variable but f2 returns 2 values|cannot assign"
+       _ = f1(), 0            // ERROR "assignment mismatch: 1 variable but 2 values|cannot assign"
        T.M0                   // ERROR "T.M0 .* not used"
        t.M0                   // ERROR "t.M0 .* not used"
        cap                    // ERROR "use of builtin cap not in function call|must be called"