]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/go/types/testdata/builtins.src
[dev.typeparams] merge master (2f0da6d) into dev.typeparams
[gostls13.git] / src / go / types / testdata / builtins.src
index 6ee28f13b4291fb19c161981f1772b13ff1093a5..370752891407beef0f7d828a128144617c4796c9 100644 (file)
@@ -25,11 +25,11 @@ func append1() {
        _ = append(s, b)
        _ = append(s, x /* ERROR cannot use x */ )
        _ = append(s, s /* ERROR cannot use s */ )
-       _ = append(s... /* ERROR can only use ... with matching parameter */ )
-       _ = append(s, b, s... /* ERROR can only use ... with matching parameter */ )
+       _ = append(s...) /* ERROR not enough arguments */
+       _ = append(s, b, s /* ERROR too many arguments */ ...)
        _ = append(s, 1, 2, 3)
        _ = append(s, 1, 2, 3, x /* ERROR cannot use x */ , 5, 6, 6)
-       _ = append(s, 1, 2, s... /* ERROR can only use ... with matching parameter */ )
+       _ = append(s, 1, 2 /* ERROR too many arguments */, s...)
        _ = append([]interface{}(nil), 1, 2, "foo", x, 3.1425, false)
 
        type S []byte