1 // Copyright 2024 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 type A = [4]int 8 type B = map[string]interface{} 9 10 func _[T ~A](x T) { 11 _ = len(x) 12 } 13 14 func _[U ~A](x U) { 15 _ = cap(x) 16 } 17 18 func _[V ~A]() { 19 _ = V{} 20 } 21 22 func _[W ~B](a interface{}) { 23 _ = a.(W)["key"] 24 } 25