]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: exclude untyped nil arguments early in type inference
authorRobert Griesemer <gri@golang.org>
Thu, 4 May 2023 17:54:12 +0000 (10:54 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 5 May 2023 16:51:41 +0000 (16:51 +0000)
commita5350558e6e2db16bfe09f2ba8104549c6598c46
treefc0ba3d7259f79be6644dd400063cd7671fa583b
parent695a53620fda42487f02a40af7fc3bc8da45425a
go/types, types2: exclude untyped nil arguments early in type inference

An untyped nil argument cannot be used to infer any type information.
We don't need to include it in the untyped arguments.

Change-Id: Ied44738ff1b135e65a3acfa19223cd3889b7fa7d
Reviewed-on: https://go-review.googlesource.com/c/go/+/492695
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/infer.go
src/cmd/compile/internal/types2/operand.go
src/go/types/infer.go
src/go/types/operand.go