Source file
test/fixedbugs/issue49249.go
1
2
3
4
5
6
7 package p
8
9 func f() int {
10 var a, b struct {
11 s struct {
12 s struct {
13 byte
14 float32
15 }
16 }
17 }
18 _ = a
19
20 return func() int {
21 return func() int {
22 a = struct {
23 s struct {
24 s struct {
25 byte
26 float32
27 }
28 }
29 }{b.s}
30 return 0
31 }()
32 }()
33 }
34
35 func g() int {
36 var a, b struct {
37 s [1][1]struct {
38 byte
39 float32
40 }
41 }
42 _ = a
43
44 return func() int {
45 return func() int {
46 a = struct {
47 s [1][1]struct {
48 byte
49 float32
50 }
51 }{b.s}
52 return 0
53 }()
54 }()
55 }
56
View as plain text