mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Another change suggested in CR
This commit is contained in:
1 parent
6928bfae12
commit
55f195d445
1 file changed
+2
-3
@@ -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