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

Unified Diff: pkg/compiler/lib/src/inferrer/locals_handler.dart

Issue 2965223002: Change inference element invariants (Closed)
Patch Set: More entities Created 3 years, 5 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/compiler/lib/src/inferrer/locals_handler.dart
diff --git a/pkg/compiler/lib/src/inferrer/locals_handler.dart b/pkg/compiler/lib/src/inferrer/locals_handler.dart
index 8e4ec2eb3d665677c6428447eef643b567d8d49e..ab1c713c3e578d2fd7cb962beaa262b88bfd3a13 100644
--- a/pkg/compiler/lib/src/inferrer/locals_handler.dart
+++ b/pkg/compiler/lib/src/inferrer/locals_handler.dart
@@ -299,6 +299,7 @@ class LocalsHandler {
options = other.options;
TypeInformation use(Local local) {
+ assert(!(local is LocalElement && !local.isImplementation));
if (capturedAndBoxed.containsKey(local)) {
FieldElement field = capturedAndBoxed[local];
return inferrer.typeOfMember(field);

Powered by Google App Engine
This is Rietveld 408576698