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)
}
}