We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0fbf5c commit 1a695e9Copy full SHA for 1a695e9
src/compiler/checker.ts
@@ -23582,7 +23582,7 @@ namespace ts {
23582
}
23583
23584
function hasContextualTypeWithNoTypeVariables(node: Expression) {
23585
- const contextualType = getContextualType(node);
+ const contextualType = !((isJsxOpeningElement(node.parent) || isJsxSelfClosingElement(node.parent)) && node.parent.tagName === node) && getContextualType(node);
23586
return contextualType && !someType(contextualType, containsTypeVariable);
23587
23588
0 commit comments