Source file test/fixedbugs/issue47904.dir/a.go

     1  // Copyright 2026 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 a
     6  
     7  type K [2]int
     8  
     9  // Package a only builds the slice literal, so the [2]K array walk builds
    10  // for it is noalg here, and a's descriptor for [2]K has no algorithms.
    11  var Sink any
    12  
    13  func init() { Sink = []K{{1, 2}, {3, 4}} }
    14  

View as plain text