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

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

Issue 2886873005: Minor type inference fixes to do with null and bottom types. (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 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(

Powered by Google App Engine
This is Rietveld 408576698