Index: pkg/compiler/lib/src/ssa/codegen.dart |
diff --git a/pkg/compiler/lib/src/ssa/codegen.dart b/pkg/compiler/lib/src/ssa/codegen.dart |
index df440f1e28d7980de814347c221c1788865eaf22..fce5372330fa5a595f9723b15dd429d612c0fe95 100644 |
--- a/pkg/compiler/lib/src/ssa/codegen.dart |
+++ b/pkg/compiler/lib/src/ssa/codegen.dart |
@@ -2572,9 +2572,8 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor { |
if (node.isArgumentTypeCheck || node.isReceiverTypeCheck) { |
ClassWorld classWorld = compiler.world; |
// An int check if the input is not int or null, is not |
- // sufficient for doing an argument or receiver check. |
- assert(compiler.trustTypeAnnotations || |
- !node.checkedType.containsOnlyInt(classWorld) || |
+ // sufficient for doing a argument or receiver check. |
+ assert(!node.checkedType.containsOnlyInt(classWorld) || |
node.checkedInput.isIntegerOrNull(compiler)); |
js.Expression test = generateTest(node.checkedInput, node.checkedType); |
js.Block oldContainer = currentContainer; |