Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index 604e453cf044aeb41efcb2044b6fc9ad98a156d7..861601fdfbe0d53162d6698b84789270d899ef56 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -9112,7 +9112,7 @@ AstNode* Parser::ParseAssertStatement() { |
ConsumeToken(); // Consume assert keyword. |
ExpectToken(Token::kLPAREN); |
const intptr_t condition_pos = TokenPos(); |
- if (!I->flags().asserts() && !I->flags().type_checks()) { |
+ if (!I->flags().asserts()) { |
SkipExpr(); |
ExpectToken(Token::kRPAREN); |
return NULL; |