DescriptionWhen reordering constructor initializers, use correct types for temp vars.
In strong mode, when a call to a super-initializer is reordered, we
can use the static type of the super-initializer arguments to set the
types of the temporary variables that we use to do the reordering.
This is desirable because it might help avoid unnecessary casts.
In non-strong mode, we use `dynamic` for the temporary variables, to
replicate Dart 1.0 behavior.
R=scheglov@google.com
Committed: https://github.com/dart-lang/sdk/commit/41170b0a1576ab6a52bbd14f5792911089ed7895
Patch Set 1 #
Total comments: 3
Messages
Total messages: 10 (2 generated)
|