Debian Codegraph @

test/fixedbugs/issue56768.go

raw
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 I interface {
10 M()
11 }
12
13 type slice []any
14
15 func f() {
16 ss := struct{ i I }{}
17
18 _ = [...]struct {
19 s slice
20 }{
21 {
22 s: slice{ss.i},
23 },
24 {
25 s: slice{ss.i},
26 },
27 {
28 s: slice{ss.i},
29 },
30 {
31 s: slice{ss.i},
32 },
33 {
34 s: slice{ss.i},
35 },
36 }
37 }