blob: c289e9bb544b2e49065aa573be5de7d7fcfff308 [file] [log] [blame]
Test of inlining a function that references err.Error,
which is often a special case because it has no position.
-- go.mod --
module testdata
go 1.12
-- a/a.go --
package a
import "io"
var _ = getError(io.EOF) //@ inline(re"getError", getError)
func getError(err error) string { return err.Error() }
-- getError --
package a
import "io"
var _ = (io.EOF.Error()) //@ inline(re"getError", getError)
func getError(err error) string { return err.Error() }