File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -17148,7 +17148,7 @@ namespace ts {
17148
17148
// and the right operand to be of type Any, a subtype of the 'Function' interface type, or have a call or construct signature.
17149
17149
// The result is always of the Boolean primitive type.
17150
17150
// NOTE: do not raise error if leftType is unknown as related error was already reported
17151
- if (!(leftType.flags & TypeFlags.Any ) && isTypeAssignableToKind(leftType, TypeFlags.Primitive)) {
17151
+ if (!isTypeAny (leftType) && isTypeAssignableToKind(leftType, TypeFlags.Primitive)) {
17152
17152
error(left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter);
17153
17153
}
17154
17154
// NOTE: do not raise error if right is unknown as related error was already reported
You can’t perform that action at this time.
0 commit comments