Source file test/fixedbugs/issue47904.dir/b.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 b
     6  
     7  import "./a"
     8  
     9  // Package b needs [2]a.K with its algorithms. The linker loads a first,
    10  // so without a rule to prefer this descriptor over a's, a's wins and the
    11  // type ends up without an equality function.
    12  var boxed any = [2]a.K{{1, 2}, {3, 4}}
    13  
    14  func Get() any { return boxed }
    15  

View as plain text