From f48372c05c400812178b0bb68cd6525601cecfe9 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Sun, 19 Feb 2012 13:19:43 +1100 Subject: test: [a-c]: add introductory comments to tests Very few of the compiler regression tests include a comment saying waht they do. Many are obvious, some are anything but. I've started with a-c in the top directory. More will follow once we agree on the approach, correctness, and thoroughness here. zerodivide.go sneaked in too. R=rsc, r CC=golang-dev http://codereview.appspot.com/5656100 --- test/convlit1.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/convlit1.go') 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" -- cgit v1.2.1