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 24d22da commit 8f3bce1Copy full SHA for 8f3bce1
src/compiler/checker.ts
@@ -7096,9 +7096,8 @@ namespace ts {
7096
// Look up the value in the current scope
7097
if (node.tagName.kind === SyntaxKind.Identifier) {
7098
let tag = <Identifier>node.tagName;
7099
- let maybeExportSymbol = getResolvedSymbol(tag);
7100
- let valueDecl = maybeExportSymbol.valueDeclaration;
7101
- valueSymbol = (valueDecl && valueDecl.localSymbol) || maybeExportSymbol;
+ let sym = getResolvedSymbol(tag);
+ valueSymbol = sym.exportSymbol || sym;
7102
}
7103
else {
7104
valueSymbol = checkQualifiedName(<QualifiedName>node.tagName).symbol;
tests/baselines/reference/tsxAttributeResolution9.errors.txt
0 commit comments