mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:30:32 +00:00
8ff777e61f
Equality of uninstantiated generic closures should match equality of corresponding instantiated generic closures. We cannot use identity for equality of instantiated generic closures as distinct instantiations of the same generic closure should be equal. So, identity shouldn't be used for uninstantiated generic closures neither. This change fixes equality for uninstantiated generic closures and also updates closure hashCode correspondingly. TEST=language/closure/instantiation_closure_equality_test TEST=co19/LanguageFeatures/Constructor-tear-offs/equality_* Fixes https://github.com/dart-lang/sdk/issues/51660 Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-nnbd-linux-release-x64-try Change-Id: Ieafc052de4a4f5f9ffcd2d9d26cb36a209c0e127 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/287581 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com> |
||
---|---|---|
.. | ||
bin | ||
docs | ||
include | ||
lib | ||
observatory | ||
observatory_2 | ||
platform | ||
tests | ||
third_party | ||
tools | ||
vm | ||
.clang-tidy | ||
.gitignore | ||
BUILD.gn | ||
codereview.settings | ||
configs.gni | ||
CPPLINT.cfg | ||
OWNERS | ||
PRESUBMIT.py | ||
runtime_args.gni |