tools/go/analysis/passes/errorsas
Jonathan Amsterdam 0abef6e9ec errorsas: handle single-actual case
Handle the case where there is syntactically only one actual argument
passed to errors.As.

Following the unmarshal check, we ignore this case.

Change-Id: Ia7d77d5b3c9eb5416b37a141104c9ad7ed290b5f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/178159
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
2019-06-01 11:02:25 +00:00
..
testdata/src/a errorsas: handle single-actual case 2019-06-01 11:02:25 +00:00
errorsas.go errorsas: handle single-actual case 2019-06-01 11:02:25 +00:00
errorsas_test.go go/analysis/passes/errorsas: check type of errors.As target 2019-03-26 20:44:19 +00:00