| Index: runtime/vm/parser.cc
|
| diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
|
| index 8cb2dc755bad177e9c99a2731f8739cbbb5e8642..949a29ec6cb8a5a109b5ec615291d9b7c9fdbff9 100644
|
| --- a/runtime/vm/parser.cc
|
| +++ b/runtime/vm/parser.cc
|
| @@ -6584,7 +6584,8 @@ AstNode* Parser::ParseBinaryExpr(int min_preced) {
|
| CaptureInstantiator();
|
| }
|
| right_operand = new TypeNode(type_pos, type);
|
| - if ((op_kind == Token::kIS) && type.IsMalformed()) {
|
| + if (((op_kind == Token::kIS) || (op_kind == Token::kISNOT)) &&
|
| + type.IsMalformed()) {
|
| // Note that a type error is thrown even if the tested value is null
|
| // in a type test. However, no cast exception is thrown if the value
|
| // is null in a type cast.
|
|
|