Debian Codegraph @

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

raw
1 This test verifies that "too new" diagnostics from the stdversion analyzer
2 are suppressed for synctest when the go version is go1.24 or later.
3 See golang/go#75367
4
5 Set max to go1.25 since the synctest experiment was removed in go1.26.
6
7 -- env --
8 GOEXPERIMENT=synctest
9 -- flags --
10 -min_go_command=go1.24
11 -max_go_command=go1.25
12
13 -- go.mod --
14 module example.com
15
16 go 1.24
17
18 -- a/a.go --
19 //go:build goexperiment.synctest || go1.25
20 package a
21
22 import "testing/synctest"
23
24 func _() {
25 synctest.Wait() // no diagnostic, see golang/go#75367
26 }