mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:19:47 +00:00
5b6512f54e
Specification of inline classes has the following rule for closurization (tear-off creation) of inline class members: > The operator == of the closurization returns true if and only if > the operand is the same object. This means that each time tear-off is taken, a new closure should be created which compares equal only to itself. This is true iff that closure has a non-empty context which captures 'this'. Signature shaking can remove 'this' parameter if it is not used and this affects equality of the tear-offs of inline class members. This change prevents that by marking 'this' parameter of inline class members as checked. TEST=co19/LanguageFeatures/Inline-classes/dynamic_semantics_member_invocation_A02_t03 TEST=co19/LanguageFeatures/Inline-classes/dynamic_semantics_member_invocation_A03_t03 Issue: https://github.com/dart-lang/sdk/issues/49737 Change-Id: I4cf4f5afdb6c83a1b1eccf587cafcf9a9ca5178a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307665 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
test | ||
testcases/transformations | ||
tool | ||
analysis_options.yaml | ||
LICENSE | ||
OWNERS | ||
pubspec.yaml | ||
README.md |
This package hosts VM specific Dart code and helper scripts.