-
- Downloads
go/types, types2: require iterator yield to return bool (work-around)
The original implementation of the type checkers accepted any boolean result type for yield, but the compiler's front-end had a problem with it (#71131). As a temporary fix (for 1.24), adjust the type checkers to insist on the spec's literal wording and avoid the compiler panic. Fixes #71131. For #71164. Change-Id: Ie25f9a892e58b5e489d399b0bce2d0af55dc3c48 Reviewed-on: https://go-review.googlesource.com/c/go/+/640599 Reviewed-by:Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com> Reviewed-by:
Tim King <taking@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Showing
- src/cmd/compile/internal/types2/stmt.go 7 additions, 2 deletionssrc/cmd/compile/internal/types2/stmt.go
- src/cmd/compile/internal/types2/universe.go 2 additions, 0 deletionssrc/cmd/compile/internal/types2/universe.go
- src/go/types/stmt.go 7 additions, 2 deletionssrc/go/types/stmt.go
- src/go/types/universe.go 2 additions, 0 deletionssrc/go/types/universe.go
- src/internal/types/testdata/fixedbugs/issue71131.go 15 additions, 0 deletionssrc/internal/types/testdata/fixedbugs/issue71131.go
- src/internal/types/testdata/spec/range.go 1 addition, 1 deletionsrc/internal/types/testdata/spec/range.go
Loading