Sign in
go
/
tools
/
92fdfdaa96e3c1dd4c15446bc6c1ff855e68361b
/
.
/
go
/
analysis
/
passes
/
modernize
/
testdata
/
src
/
errorsastype
/
dotimport
/
a.go
blob: 272aab9b0c501bd9cafe3f56599f3bc0e9a5fd79 [
file
] [
log
] [
blame
]
package errorsastype
import (
. "errors"
"os"
)
func _(err error) {
var patherr *os.PathError
if As(err, &patherr) {
// want `errors.As can be simplified using AsType\[\*os.PathError\]`
print(patherr)
}
}