Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Unified Diff: pkg/front_end/lib/src/fasta/kernel/body_builder.dart

Issue 2954063002: Small fixes to top level type inference. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/kernel/body_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
index 99f2340a4c1b29e52282b052513723bc81333277..2afbb2b6ff9d1bd070dee02c75b111f7ea2eb15f 100644
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
@@ -438,7 +438,8 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
"Unhandled: '${field.name}' has more than one declaration.");
}
field.initializer = initializer;
- _typeInferrer.inferFieldInitializer(field.builtType, initializer);
+ _typeInferrer.inferFieldInitializer(
+ field.hasImplicitType ? null : field.builtType, initializer);
}
}
pop(); // Type.
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/field_builder.dart ('k') | pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698