mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 17:27:54 -05:00
Another change suggested in CR
This commit is contained in:
@@ -5949,9 +5949,8 @@ namespace ts {
|
||||
captureLexicalThis(node, container);
|
||||
}
|
||||
|
||||
let classNode = isClassLike(container.parent) ? container.parent : undefined;
|
||||
if (classNode) {
|
||||
let symbol = getSymbolOfNode(classNode);
|
||||
if (isClassLike(container.parent)) {
|
||||
let symbol = getSymbolOfNode(container.parent);
|
||||
return container.flags & NodeFlags.Static ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol);
|
||||
}
|
||||
return anyType;
|
||||
|
||||
Reference in New Issue
Block a user