]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: use correct predicate when asserting comma-ok types
authorRobert Griesemer <gri@golang.org>
Thu, 18 Apr 2024 15:51:27 +0000 (08:51 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 18 Apr 2024 17:42:47 +0000 (17:42 +0000)
commitad87d4404782d816f7a4497113b6b983b45aa442
tree9b9985f0b52ae0823ee1064f7c16e7a7309c4d7e
parenta0205e650a2a802b82e7f924e43d4a9adfb3ac36
go/types, types2: use correct predicate when asserting comma-ok types

While at it and unrelated, up-date testdata/manual.go sample file so
we can just copy its contents into a test file after debugging, without
fixing the date.

Fixes #66878.

Change-Id: Ie49a341b78d99bdc0f1a0ba1ca42fa2d3a807bd6
Reviewed-on: https://go-review.googlesource.com/c/go/+/580075
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/types2/check.go
src/cmd/compile/internal/types2/testdata/manual.go
src/go/types/check.go
src/go/types/testdata/manual.go
src/internal/types/testdata/fixedbugs/issue66878.go [new file with mode: 0644]