]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: report error for floating-point iteration variable
authorRobert Griesemer <gri@golang.org>
Mon, 22 Apr 2024 22:52:59 +0000 (15:52 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 16 May 2024 18:56:00 +0000 (18:56 +0000)
commit26ed0528c76d10883e0d24ca8b7bb87e62dc4487
treea00f717aaced8f223927c93542e1ea674e7b61b4
parenta523152ea1df8d39d923ed90d19662896eff0607
go/types, types2: report error for floating-point iteration variable

While at it, slightly improve documentation and code.
Also, add additional test cases for #66561.

Updates #66561.
Fixes #67027.

Change-Id: I682b0e9227e065d6bbd199871c2e1ecff13edc66
Reviewed-on: https://go-review.googlesource.com/c/go/+/580937
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/stmt.go
src/go/types/stmt.go
src/internal/types/testdata/check/stmt0.go
src/internal/types/testdata/spec/range_int.go