DescriptionRelaxes treatment of method type parameter in `as` expressions.
This CL changes the semantics of `dart2js --generic-method-syntax`
generated code for `e as T` where `T` is a method type parameter.
The old behavior was to raise a `TypeError` at runtime when such an
expression was evaluated. The new behavior is to consider `T` as an
alias for `dynamic`, i.e., `e as T` will then always succeed.
Addresses part of issue 27460, omits a part that is not yet agreed upon.
R=johnniwinther@google.com
Committed: https://github.com/dart-lang/sdk/commit/b5d2b38aa3f3704e16ef33af7872188b1568a532
Patch Set 1 #Patch Set 2 : Simplifies `o as T` check for `T` method type parameter. #
Messages
Total messages: 5 (2 generated)
|