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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart

Issue 304153014: Remove element from DynamicType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix infinite loop. Created 6 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: sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart b/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
index c2c518ccfaf0d482ceea7ef2d63d6f7952cc6175..4b3d0b5b5ecf568a1ebad839fb523854acd7f0ef 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
@@ -1083,7 +1083,7 @@ abstract class InferrerVisitor
DartType type = elements.getType(node.type);
T mask = type == null ||
type.treatAsDynamic ||
- type.kind == TypeKind.TYPE_VARIABLE
+ type.isTypeVariable
? types.dynamicType
: types.nonNullSubtype(type.element);
locals.update(elements[exception], mask, node);

Powered by Google App Engine
This is Rietveld 408576698