summaryrefslogtreecommitdiff
path: root/test/convlit1.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/convlit1.go')
-rw-r--r--test/convlit1.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/convlit1.go b/test/convlit1.go
index 09d96f0fd..c06bd7443 100644
--- a/test/convlit1.go
+++ b/test/convlit1.go
@@ -4,6 +4,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// Verify that illegal uses of composite literals are detected.
+// Does not compile.
+
package main
var a = []int { "a" }; // ERROR "conver|incompatible|cannot"