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 7d0f1c99fc13569c190baf5acf0bbfdf91af224a..2cf874fe007cd920cf1737d6659a255585651a49 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 |
@@ -134,7 +134,7 @@ abstract class TypeInferenceEngineImpl extends TypeInferenceEngine { |
if (fieldHasInitializer(field)) { |
var typeInferrer = getFieldTypeInferrer(field); |
var type = getFieldDeclaredType(field); |
- var inferredType = typeInferrer.inferDeclarationOrReturnType( |
+ var inferredType = typeInferrer.inferDeclarationType( |
typeInferrer.inferFieldInitializer(field, type, type == null)); |
if (type == null && strongMode) { |
instrumentation?.record( |