Skip to content

Commit ded2441

Browse files
author
Arthur Ozga
committed
fixed a conflict
1 parent 2a9ea48 commit ded2441

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/compiler/checker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6843,7 +6843,7 @@ namespace ts {
68436843
}
68446844

68456845
if (correspondingPropType) {
6846-
checkTypeAssignableTo(exprType, correspondingPropType, node);
6846+
checkTypeAssignableTo(exprType, correspondingPropType, RelationComparisonFlags.None, node);
68476847
}
68486848

68496849
nameTable[node.name.text] = true;
@@ -6860,7 +6860,7 @@ namespace ts {
68606860
let targetPropSym = getPropertyOfType(elementAttributesType, prop.name);
68616861
if (targetPropSym) {
68626862
let msg = chainDiagnosticMessages(undefined, Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property, prop.name);
6863-
checkTypeAssignableTo(getTypeOfSymbol(prop), getTypeOfSymbol(targetPropSym), node, undefined, msg);
6863+
checkTypeAssignableTo(getTypeOfSymbol(prop), getTypeOfSymbol(targetPropSym), RelationComparisonFlags.None, node, undefined, msg);
68646864
}
68656865

68666866
nameTable[prop.name] = true;
@@ -6988,7 +6988,7 @@ namespace ts {
69886988
// Issue an error if this return type isn't assignable to JSX.ElementClass
69896989
let elemClassType = getJsxGlobalElementClassType();
69906990
if (elemClassType) {
6991-
checkTypeRelatedTo(returnType, elemClassType, assignableRelation, node, Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements);
6991+
checkTypeRelatedTo(returnType, elemClassType, assignableRelation, RelationComparisonFlags.None, node, Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements);
69926992
}
69936993

69946994
return returnType;

0 commit comments

Comments
 (0)