diff options
author | Ryan Hitchman <hitchmanr@gmail.com> | 2012-04-02 11:00:55 -0400 |
---|---|---|
committer | Ryan Hitchman <hitchmanr@gmail.com> | 2012-04-02 11:00:55 -0400 |
commit | 80044e397fc3bac68ff7228560ea650d164f8939 (patch) | |
tree | 55768b42cc7e4b940cbdbf4247e3876402fbdfc9 /test/syntax | |
parent | c571066f6f14de39058027141f58019cb6969739 (diff) | |
download | go-80044e397fc3bac68ff7228560ea650d164f8939.tar.gz |
gc: improve error message for composite literals with unexpected newlines
R=golang-dev, r, rsc
CC=golang-dev
http://codereview.appspot.com/5857045
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'test/syntax')
-rw-r--r-- | test/syntax/composite.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/syntax/composite.go b/test/syntax/composite.go new file mode 100644 index 000000000..656533493 --- /dev/null +++ b/test/syntax/composite.go @@ -0,0 +1,11 @@ +// errorcheck + +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package main + +var a = []int{ + 3 // ERROR "need trailing comma before newline in composite literal" +} |