]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: infer minimum default type for untyped arguments
authorRobert Griesemer <gri@golang.org>
Thu, 4 May 2023 17:38:58 +0000 (10:38 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 8 May 2023 22:22:41 +0000 (22:22 +0000)
commit3c3b1d39bee6d208ab437e24ba942fbae789eb7f
treebd1a55ec13fb44ee2d56d70b2178c89229bf5330
parent2532352ffba751726419a866e9ae5cb5529637fe
go/types, types2: infer minimum default type for untyped arguments

This implements the proposal #58671.
Must be explicitly enabled and requires proposal approval.

For #58671.

Change-Id: I150e78f4f3282d6b7cf9d90feeb5f1c5a36d8c38
Reviewed-on: https://go-review.googlesource.com/c/go/+/492835
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/api.go
src/cmd/compile/internal/types2/check_test.go
src/cmd/compile/internal/types2/infer.go
src/go/types/api.go
src/go/types/check_test.go
src/go/types/generate_test.go
src/go/types/infer.go
src/internal/types/testdata/fixedbugs/issue58671.go [new file with mode: 0644]