| Index: runtime/vm/parser.cc
|
| diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
|
| index cb9c620101ec318ff2baffb48bf4f5a698cea49e..91c5803c711e603183ceec4c8067db3d3642ec47 100644
|
| --- a/runtime/vm/parser.cc
|
| +++ b/runtime/vm/parser.cc
|
| @@ -10999,9 +10999,7 @@ AstNode* Parser::ParseBinaryExpr(int min_preced) {
|
| right_operand = new(Z) TypeNode(type_pos, type);
|
| // In production mode, the type may be malformed.
|
| // In checked mode, the type may be malformed or malbounded.
|
| - if (((op_kind == Token::kIS) || (op_kind == Token::kISNOT) ||
|
| - (op_kind == Token::kAS)) &&
|
| - type.IsMalformedOrMalbounded()) {
|
| + if (type.IsMalformedOrMalbounded()) {
|
| // Note that a type error is thrown in a type test or in
|
| // a type cast even if the tested value is null.
|
| // We need to evaluate the left operand for potential
|
|
|