blob: 4868b2cbfb13c9c131e51f2e98e668c68675af22 [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() }