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

Unified Diff: pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart

Issue 2905123002: Perform type inference on explicitly typed fields. (Closed)
Patch Set: Created 3 years, 7 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/type_inference/type_inference_engine.dart
diff --git a/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart b/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart
index 2fcb7faa010550e164394713f346f2a7aa4118f2..859d0491e7c572befbaf7ae55c7a94bd28efe05a 100644
--- a/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart
+++ b/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart
@@ -156,7 +156,7 @@ abstract class TypeInferenceEngineImpl extends TypeInferenceEngine {
var typeInferrer = getFieldTypeInferrer(field);
var type = getFieldDeclaredType(field);
var inferredType = typeInferrer.inferDeclarationType(
- typeInferrer.inferFieldInitializer(field, type, type == null));
+ typeInferrer.inferFieldTopLevel(field, type, type == null));
if (type == null && strongMode && updateType) {
instrumentation?.record(
Uri.parse(typeInferrer.uri),

Powered by Google App Engine
This is Rietveld 408576698