mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
8562c8ff1b
During migration of lib/mirrors/initializing_formals_test.dart to lib_2 it became apparent that strong mode makes it an error to have different type annotations on an initializing formal and the corresponding field. The language team discussed this and decided that we will take a middle way: These type annotations can differ, but the initializing formal must have a subtype. This CL adjusts the spec to say that. In line with the rest of the spec it is still a static warning (we will migrate all the static warnings to errors as a separate step). Change-Id: I66656c2933b7f86b78f0b06eadbf5edc0f58a3c6 Reviewed-on: https://dart-review.googlesource.com/7264 Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Erik Ernst <eernst@google.com> |
||
---|---|---|
.. | ||
language | ||
newsletter |