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

Unified Diff: pkg/analyzer/lib/src/generated/type_system.dart

Issue 2667343005: Infer Null for return type of functions with empty returns. (Closed)
Patch Set: Avoid merge conflict Created 3 years, 11 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/analyzer/lib/src/generated/type_system.dart
diff --git a/pkg/analyzer/lib/src/generated/type_system.dart b/pkg/analyzer/lib/src/generated/type_system.dart
index bcf8ad566db77cad173eeaf664aefd8ce4d7a479..1e1d1824caf386948df9cb9b1832c51cb8801a16 100644
--- a/pkg/analyzer/lib/src/generated/type_system.dart
+++ b/pkg/analyzer/lib/src/generated/type_system.dart
@@ -1554,7 +1554,6 @@ class _StrongInferenceTypeSystem extends StrongTypeSystemImpl {
lowerBound = bound.upper;
upperBound = bound.lower;
}
-
inferredTypes[i] =
variance.passedIn && !upperBound.isDynamic || lowerBound.isBottom
? upperBound

Powered by Google App Engine
This is Rietveld 408576698