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

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

Issue 2900553003: Fix type inference of factory constructor invocations. (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_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart b/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart
index f4ad5f8fd4383ed921430a818aab197a0d9aa473..7eeda5eb474ca6d707b59876cdb5feabe1dde5ad 100644
--- a/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart
+++ b/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart
@@ -87,11 +87,11 @@ class TypeInferenceListener
debugExpressionExit("conditionalExpression", expression, inferredType);
bool constructorInvocationEnter(
- ConstructorInvocation expression, DartType typeContext) =>
+ InvocationExpression expression, DartType typeContext) =>
debugExpressionEnter("constructorInvocation", expression, typeContext);
void constructorInvocationExit(
- ConstructorInvocation expression, DartType inferredType) =>
+ InvocationExpression expression, DartType inferredType) =>
debugExpressionExit("constructorInvocation", expression, inferredType);
bool doubleLiteralEnter(DoubleLiteral expression, DartType typeContext) =>

Powered by Google App Engine
This is Rietveld 408576698