]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: remove superfluous assertion (fix build)
authorRobert Griesemer <gri@golang.org>
Fri, 17 Jan 2025 00:08:26 +0000 (16:08 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 17 Jan 2025 14:41:53 +0000 (06:41 -0800)
commit80bf7d83edbb48e2411d755f0636565467bb5a56
treef5dccb0b80fbf29715c99551d4138c059c0526f7
parent1a93e4a2cf43b0ded141d33620966bb252cac1bd
go/types, types2: remove superfluous assertion (fix build)

Remove an assertion that was overly restrictive and hard to get
correct under all circumstances (i.e., in the presence of incorrect)
code. This matches the code for *Named types in that specific switch.

Fixes #71284.

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