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