Source file test/fixedbugs/issue54722b.go
1 // compile 2 3 // Copyright 2022 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 package p 8 9 type value[V comparable] struct { 10 node *node[value[V]] 11 value V 12 } 13 14 type node[V comparable] struct { 15 index *index[V] 16 children map[string]*node[V] 17 } 18 19 type index[V comparable] struct { 20 arrays []array[V] 21 } 22 23 type array[V comparable] struct { 24 valueMap map[int]V 25 } 26 27 var x value[int] 28 var y value[*Column] 29 30 type Column struct{ column int } 31