Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/analysis/passes/atomic: add a test that uses typeparams
This atomic check simply inspects whether sync/atomic.Add* are used and LHS looks identical to the first arg of the call. In the current implementation, this does not require handling of type params. This test shows the addition of typeparams doesn't crash the vet. Update golang/go#48704 Change-Id: I79f9d782595f6bf2db82237afdbef1ffdf6f808e Reviewed-on: https://go-review.googlesource.com/c/tools/+/353550 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
- Loading branch information