Source file test/fixedbugs/issue78262.go
1 // run 2 3 // Copyright 2026 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 A struct { 10 a int 11 B 12 } 13 14 type B struct { 15 b int 16 C 17 } 18 19 type C struct { 20 c int 21 } 22 23 func main() { 24 _ = A{a: 1, b: 2} 25 _ = A{a: 1, c: 3} 26 _ = A{a: 1, b: 2, c: 3} // don't panic during compilation 27 } 28