From 04b08da9af0c450d645ab7389d1467308cfc2db8 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 4 Mar 2013 21:27:36 +0100 Subject: Imported Upstream version 1.1~hg20130304 --- test/syntax/composite.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/syntax/composite.go (limited to 'test/syntax/composite.go') 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" +} -- cgit v1.2.3