Debian Codegraph @

gopls/internal/test/marker/testdata/diagnostics/issue78553_before127.txt

raw
1 Test that direct reference to embedded fields in struct literals produces diagnostics before Go 1.27.
2 Ref: go.dev/issues/78553
3
4 -- flags --
5 -max_go_command=go1.26
6
7 -- go.mod --
8 module mod.com
9
10 go 1.22
11
12 -- main.go --
13 package main
14
15 type E1 struct {
16 A int
17 }
18
19 type T struct {
20 E1
21 }
22
23 func main() {
24 _ = T{
25 A: 1, //@diag(re"A", re"unknown field")
26 }
27 }