...

Text file src/go/parser/testdata/commas.src

Documentation: go/parser/testdata

     1// Copyright 2012 The Go Authors. All rights reserved.
     2// Use of this source code is governed by a BSD-style
     3// license that can be found in the LICENSE file.
     4
     5// Test case for error messages/parser synchronization
     6// after missing commas.
     7
     8package p
     9
    10var _ = []int{
    11	0/* ERROR AFTER "missing ','" */
    12}
    13
    14var _ = []int{
    15	0,
    16	1,
    17	2,
    18	3/* ERROR AFTER "missing ','" */
    19}

View as plain text