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 1036a57eb779e6d256f3c1da586785959dd3f464..406fc054548c25fd6f7061cec7e5526f6da3efa9 100644 |
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart |
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart |
@@ -352,6 +352,9 @@ abstract class Enqueuer { |
void registerIsCheck(DartType type) { |
universe.isChecks.add(type); |
+ if (type.kind == TypeKind.TYPE_VARIABLE) { |
+ compiler.hasVariableTypecheck = true; |
+ } |
compiler.backend.registerIsCheck(type, this); |
} |