]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: factor type checking of func literals and generate go/types code
authorRobert Griesemer <gri@golang.org>
Thu, 5 Sep 2024 00:15:57 +0000 (17:15 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 5 Sep 2024 22:09:30 +0000 (22:09 +0000)
commita17356cd23163997031b648def23d56cbb76ae9a
treeab05c218e0fee690c60292738e9377d7f5aa610b
parent829d1b346f768f0e87a3c93e571be3de5bc7ab83
go/types, types2: factor type checking of func literals and generate go/types code

Move the code for type checking of function literals into
literals.go.

In go/types, the respective code is now generated from the types2 source.

Change-Id: Ic81ab3c0d3c66d99bc0f2e21d66bf9a896ef9375
Reviewed-on: https://go-review.googlesource.com/c/go/+/610996
Reviewed-by: Tim King <taking@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/expr.go
src/cmd/compile/internal/types2/literals.go
src/go/types/expr.go
src/go/types/literals.go