This repository was archived by the owner on Feb 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
task model: not correctly checking (inferring?) initializing formals #346
Labels
Comments
16 tasks
I believe this also affects 'Constructors' in checker_test.dart |
the "Constructors" test is now passing with @leafpetersen 's CL https://codereview.chromium.org/1370793002/ |
the other one seems to be failing still |
Ah, here's what our old code had to say: @override
visitFieldFormalParameter(FieldFormalParameter node) {
// Ensure the field formal parameter's type is updated after inference.
// Normally this happens during TypeResolver, but that's before we've done
// inference on the field type.
var element = node.element;
if (element is FieldFormalParameterElement) {
if (element.type.isDynamic) {
// In malformed code, there may be no actual field.
if (element.field != null) {
element.type = element.field.type;
}
}
}
super.visitFieldFormalParameter(node);
} I wonder if we have the same issue ... that we're inferring after the type has been computed. |
fixed here: https://codereview.chromium.org/1371813002/ |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This test is failing:
The text was updated successfully, but these errors were encountered: