diff options
author | Tim King <taking@google.com> | 2022-12-27 15:20:06 -0800 |
---|---|---|
committer | Tim King <taking@google.com> | 2022-12-29 03:44:15 +0000 |
commit | 2f31dd473a3cd96dbddb9da93b58ac55f1a2450e (patch) | |
tree | 737f9d8acecdfb83ec90366d0251b99ab935feed /gopls/internal/regtest/completion/completion_test.go | |
parent | ae4ff823be864cd986f1928bc1b12e5aba270576 (diff) | |
download | golang-x-tools-2f31dd473a3cd96dbddb9da93b58ac55f1a2450e.tar.gz |
go/ssa,go/analysis/passes/nilness: refine when type param constants are nil
Const.IsNil returns true for zero value of type params when all
potential instantiations of the type parameter are nillable.
nilness does not consider an invoke of a type parameter to be
an error.
Change-Id: I8f3f6e626861146815b17e2a04c428a3444263a7
Reviewed-on: https://go-review.googlesource.com/c/tools/+/459675
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Tim King <taking@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'gopls/internal/regtest/completion/completion_test.go')
0 files changed, 0 insertions, 0 deletions