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

Unified Diff: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart

Issue 23656005: Fix the merge of locals handler logic. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (revision 27097)
+++ sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (working copy)
@@ -93,10 +93,6 @@
TypeMask nonNullExact(DartType type) => new TypeMask.nonNullExact(type);
TypeMask nonNullEmpty() => new TypeMask.nonNullEmpty();
- TypeMask nullable(TypeMask type) {
- return type.nullable();
- }
-
TypeMask allocateContainer(TypeMask type,
Node node,
Element enclosing,
@@ -2306,10 +2302,6 @@
T currentType =
handleDynamicSend(node, currentSelector, iteratorType, null);
- // We nullify the type in case there is no element in the
- // iterable.
- currentType = types.nullable(currentType);
-
if (node.expression.isThis()) {
// Any reasonable implementation of an iterator would expose
// this, so we play it safe and assume it will.

Powered by Google App Engine
This is Rietveld 408576698