Chromium Code Reviews
DescriptionIntroduces "--initializing-formal-access".
This CL adjusts the treatment of initializing formals, such that they
can be used in initializers and in constructor bodies. E.g., `x` can be
used as in `C(this.x) : y = x { var z = x + 2; }`.
It hides the new feature under the option '--initializing-formal-access'
which is used in the test 'initializing_formal_access_test.dart'.
It also adds an `example` test to `MessageKind.DUPLICATE_DEFINITION` to
verify that name clashes among initializing formals and other
parameters are detected (which was previously not the case).
Finally, it fixes a typo in a comment, `InitializingFormalParameter` ->
`InitializingFormalElement`.
R=johnniwinther@google.com
Committed: https://github.com/dart-lang/sdk/commit/b80a73775cb1ba2539667a067ce608485cc136b7
Patch Set 1 #Patch Set 2 : Removed temporary tests #Patch Set 3 : Eliminated unnecessary changes, thus avoiding 35 failing tests. #Messages
Total messages: 7 (2 generated)
|