blob: bd4171895e954e4a68f6074c10c167a9e377e964 [file] [log] [blame]
Test of caller/callee Go version compatibility check (#75726).
-- go.work --
use .
use ./b
-- go.mod --
module example.com
go 1.18
-- a/a.go --
package a
import "example.com/b"
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`)
-- b/go.mod --
module example.com/b
go 1.20
-- b/b.go --
package b
func Add(x, y int) int { return x + y }