Text file src/go/types/testdata/fixedbugs/issue43190.src

     1  // Copyright 2021 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  // Most of the errors below are actually produced by the parser, but we check
     6  // them here for consistency with the types2 tests.
     7  
     8  package p
     9  
    10  import ; /* ERROR invalid import path */ /* ERROR expected 'STRING' */
    11  import // ERROR expected ';'
    12  var _ int
    13  import /* ERROR expected declaration */ .;
    14  
    15  import ()
    16  import (.)
    17  import (
    18  	"fmt"
    19  	.
    20  )
    21  
    22  var _ = fmt /* ERROR "undeclared name" */ .Println
    23  

View as plain text