github.com/JimmyHuang454/JLS-go@v0.0.0-20230831150107-90d536585ba0/internal/types/testdata/fixedbugs/issue51145.go (about)

     1  // Copyright 2022 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  package p
     6  
     7  import "fmt"
     8  
     9  type (
    10  	_ [fmt /* ERROR invalid array length fmt */ ]int
    11  	_ [float64 /* ERROR invalid array length float64 */ ]int
    12  	_ [f /* ERROR invalid array length f */ ]int
    13  	_ [nil /* ERROR invalid array length nil */ ]int
    14  )
    15  
    16  func f()
    17  
    18  var _ fmt.Stringer // use fmt