Debian Codegraph @

gopls/internal/test/marker/testdata/codeaction/inline-version.txt

raw
1 Test of caller/callee Go version compatibility check (#75726).
2
3 -- go.work --
4 use .
5 use ./b
6
7 -- go.mod --
8 module example.com
9 go 1.18
10
11 -- a/a.go --
12 package a
13
14 import "example.com/b"
15
16 var _ = b.Add(1, 2) //@ codeaction("Add", "refactor.inline.call", end=")", err=`cannot inline call to b.Add (declared using go1.20) into a file using go1.18`)
17
18 -- b/go.mod --
19 module example.com/b
20 go 1.20
21
22 -- b/b.go --
23 package b
24
25 func Add(x, y int) int { return x + y }