]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.22] go/types, types2: report error for floating-point iteration...
authorRobert Griesemer <gri@golang.org>
Mon, 22 Apr 2024 22:52:59 +0000 (15:52 -0700)
committerJoedian Reid <joedian@google.com>
Mon, 24 Jun 2024 17:14:05 +0000 (17:14 +0000)
commit11b861e45936eb7911e30304163a14553f53a5d1
tree05c4bdab74b141df10c0e18345061f6a700bbea6
parent81fc6162675ea2543aa30ae35e56769c3d8a39ca
[release-branch.go1.22] 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 #67798.

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>
Reviewed-on: https://go-review.googlesource.com/c/go/+/590056
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