]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: enable more lenient type inference for untyped arguments
authorRobert Griesemer <gri@golang.org>
Wed, 17 May 2023 19:26:05 +0000 (12:26 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 18 May 2023 00:35:53 +0000 (00:35 +0000)
commit956d31ecd50fa11b66e4ad39a30677acb5616476
tree39e0fc9c30fb253cf8302f8ba2156e4b8c1339e3
parent0b86a04db011c44056688217e073ae380772b57b
cmd/compile: enable more lenient type inference for untyped arguments

This enables the implementation for proposal #58671, which is
a likely accept. By enabling it early we get a bit extra soak
time for this feature. The change can be reverted trivially, if
need be.

For #58671.

Change-Id: Id6c27515e45ff79f4f1d2fc1706f3f672ccdd1ab
Reviewed-on: https://go-review.googlesource.com/c/go/+/495955
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/noder/irgen.go
src/cmd/compile/internal/types2/stdlib_test.go
src/go/types/stdlib_test.go
test/fixedbugs/issue58671.go [new file with mode: 0644]