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

Unified Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 12389025: Do not register typechecks against type variables of typedefs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change inCheckContext for typedef contexts. Created 7 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
Index: sdk/lib/_internal/compiler/implementation/enqueue.dart
diff --git a/sdk/lib/_internal/compiler/implementation/enqueue.dart b/sdk/lib/_internal/compiler/implementation/enqueue.dart
index acf846242ac4f9f16e459199f907fa3f0f9d001a..57574a08b0d0d90ac21f2dfa1484c32b2679be6f 100644
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -356,6 +356,8 @@ abstract class Enqueuer {
}
void registerIsCheck(DartType type) {
+ assert(type.kind != TypeKind.TYPE_VARIABLE ||
+ !type.element.enclosingElement.isTypedef());
universe.isChecks.add(type);
compiler.backend.registerIsCheck(type, this);
}

Powered by Google App Engine
This is Rietveld 408576698