]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: explicitly look for nil type arguments in infer
authorRobert Griesemer <gri@golang.org>
Tue, 9 May 2023 21:02:07 +0000 (14:02 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 10 May 2023 13:59:32 +0000 (13:59 +0000)
commitd9dce0cd26a1e5df0aa2dbbecde4515807be929e
treecba9742676717ba0136ed3709c97b7f52ed4f5a0
parent607a04588886b3d605500942f20de9dbab02ed9d
go/types, types2: explicitly look for nil type arguments in infer

Don't assume we have all type arguments if the number of type arguments
matches the number of type parameters. Instead, look explicitly for nil
type arguments in the provided targs.

Preparation for type inference with type arguments provided for type
parameters of generic function arguments passed to other functions.

For #59338.

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