]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: fix incorrect logic in assignability check
authorRobert Griesemer <gri@golang.org>
Thu, 25 May 2023 23:35:17 +0000 (16:35 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 5 Jun 2023 14:01:09 +0000 (14:01 +0000)
commit05293d6b499afe9f37c11582c4a9a41fd92ba258
tree966a95ac3435ad19bd9cec86be1183dfed0e5632
parent96d16803c2aae5407e99c2a1db79bb51d9e1c8da
go/types, types2: fix incorrect logic in assignability check

Do not return prematurely in assignableTo.

Fixes #54424.

Change-Id: I769b3b4ad9d79b7bce60b92cc59c3564117e36db
Reviewed-on: https://go-review.googlesource.com/c/go/+/498400
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/operand.go
src/go/types/operand.go
src/internal/types/testdata/fixedbugs/issue54424.go [new file with mode: 0644]