Files
sdk/tests/language/anonymous_methods/expression
Paul Berry 8d59e904e4 [anonymous methods] Test private field promotion.
To work properly with anonymous methods, the private field promotion
logic in flow analysis will have to be updated so that it understands
that `this` refers to a different object inside of an anonymous
method.

This CL adds new language tests to validate that this logic has been
properly updated.

Change-Id: I4ad2c289c5b39bb7397e68eff74324226a6a6964
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/496720
Commit-Queue: Paul Berry <paulberry@google.com>
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2026-04-22 10:19:04 -07:00
..