Chromium Code Reviews
DescriptionCheck field type when evaluating initializing formals.
This performs proper type checking when the type of a field differs
from the type of a field formal parameter, e.g.:
class A {
final T1 x;
const A(T2 this.x);
}
// only works if <expr> is a subtype of both T1 and T2.
var a = const A(<expr>);
Previously we only checked the parameter type (T2 in the above example).
BUG=dartbug.com/16391
R=brianwilkerson@google.com
Committed: https://code.google.com/p/dart/source/detail?r=41048
Patch Set 1 #
Messages
Total messages: 4 (1 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||