Index: pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
diff --git a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
index a1b623fc25ece50a7c8c89729d428ab957b9f194..2998a5bc2f8db96bc219513f6f25360d220b7a74 100644 |
--- a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
+++ b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
@@ -358,7 +358,7 @@ class CodeGenerator extends tree_ir.StatementVisitor |
giveup(node, 'type casts not implemented.'); |
} |
DartType type = node.type; |
- if (type is InterfaceType && type.typeArguments.isEmpty) { |
+ if (type is InterfaceType && type.isRaw) { |
glue.registerIsCheck(type, registry); |
js.Expression value = visitExpression(node.receiver); |
return emitSubtypeTest(node, value, type); |