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); |
} |