b4ab28fef1
While 'this' variable (receiver) is in scope in closures inside instance methods, closures do not take it as a parameter and they shouldn't declare a local variable for receiver unless it's captured. Fixes https://github.com/dart-lang/sdk/issues/38743 Fixes https://github.com/dart-lang/sdk/issues/39285 Change-Id: Ic5c735fd50457a5fb39acb3ec3590964e4dddba3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124825 Reviewed-by: Régis Crelier <regis@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>