Skip to content

Commit 1a695e9

Browse files
committed
Fix circularity for JSX elements
1 parent a0fbf5c commit 1a695e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23582,7 +23582,7 @@ namespace ts {
2358223582
}
2358323583

2358423584
function hasContextualTypeWithNoTypeVariables(node: Expression) {
23585-
const contextualType = getContextualType(node);
23585+
const contextualType = !((isJsxOpeningElement(node.parent) || isJsxSelfClosingElement(node.parent)) && node.parent.tagName === node) && getContextualType(node);
2358623586
return contextualType && !someType(contextualType, containsTypeVariable);
2358723587
}
2358823588

0 commit comments

Comments
 (0)