-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Commit 13bb48e
go/constant: fix complex != unknown comparison
By the contract of Compare, if one operand is Unknown, the result must be
false.
Fixes #75137
Change-Id: I56420fae808395f89769f5e5d448f9e1df9a622f
GitHub-Last-Rev: 858ba89
GitHub-Pull-Request: #75140
Reviewed-on: https://go-review.googlesource.com/c/go/+/698955
Reviewed-by: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>1 parent ba1109f commit 13bb48e
2 files changed
+7
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1083 | 1083 |
| |
1084 | 1084 |
| |
1085 | 1085 |
| |
1086 | - | ||
1086 | + | ||
1087 | + | ||
1088 | + | ||
1089 | + | ||
1087 | 1090 |
| |
1088 | 1091 |
| |
1089 | 1092 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
617 | 617 |
| |
618 | 618 |
| |
619 | 619 |
| |
620 | + | ||
621 | + | ||
622 | + | ||
620 | 623 |
| |
621 | 624 |
| |
622 | 625 |
| |
|
0 commit comments