Debian Codegraph @

test/typeparam/issue46591.go

raw
1 // run
2
3 // Copyright 2021 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 main
8
9 type T[_ any] struct{}
10
11 var m = map[interface{}]int{
12 T[struct{ int }]{}: 0,
13 T[struct {
14 int "x"
15 }]{}: 0,
16 }
17
18 func main() {
19 if len(m) != 2 {
20 panic(len(m))
21 }
22 }