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

Unified Diff: pkg/analyzer/lib/src/summary/link.dart

Issue 2712913004: Work around the problem when type inference fails and StrongTypeSystemImpl.inferGenericFunctionCall… (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | pkg/analyzer/test/src/task/strong/inferred_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/link.dart
diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
index 425eda73b03b11dce82d9ec9590d06ec21fdd98a..d67a8e5c69d414c372e25656fe538c41e38b303c 100644
--- a/pkg/analyzer/lib/src/summary/link.dart
+++ b/pkg/analyzer/lib/src/summary/link.dart
@@ -2372,7 +2372,7 @@ class ExprTypeComputer {
namedArgNames,
namedArgTypeList,
positionalArgTypes, const <DartType>[]);
- if (identical(inferredType, rawType)) {
+ if (inferredType == null || identical(inferredType, rawType)) {
inferredType = linker.typeSystem.instantiateToBounds(rawType);
}
return inferredType.returnType;
« no previous file with comments | « no previous file | pkg/analyzer/test/src/task/strong/inferred_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698