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

     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  
     8  package p
     9  
    10  var _ = []int{
    11  	0/* ERROR HERE "missing ','" */
    12  }
    13  
    14  var _ = []int{
    15  	0,
    16  	1,
    17  	2,
    18  	3/* ERROR HERE "missing ','" */
    19  }
    20  

View as plain text