tools/go/analysis/passes/errorsas
Jonathan Amsterdam b8c0eb4911 go/analysis/passes/errorsas: check type of errors.As target
Add a vet pass that checks that the second argument to errors.As
is a pointer to a type implementing error.

Change-Id: I0924e634cbea0664c8728f0e74213b924f8498e6
Reviewed-on: https://go-review.googlesource.com/c/tools/+/168938
Reviewed-by: Damien Neil <dneil@google.com>
2019-03-26 20:44:19 +00:00
..
testdata/src/a go/analysis/passes/errorsas: check type of errors.As target 2019-03-26 20:44:19 +00:00
errorsas.go go/analysis/passes/errorsas: check type of errors.As target 2019-03-26 20:44:19 +00:00
errorsas_test.go go/analysis/passes/errorsas: check type of errors.As target 2019-03-26 20:44:19 +00:00