mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
allow usage of 'super' in object literal expressions
This commit is contained in:
@@ -5780,7 +5780,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
function getReferencesForSuperKeyword(superKeyword: Node): ReferencedSymbol[] {
|
||||
let searchSpaceNode = getSuperContainer(superKeyword, /*includeFunctions*/ false);
|
||||
let searchSpaceNode = getSuperContainer(superKeyword, /*stopOnFunctions*/ false);
|
||||
if (!searchSpaceNode) {
|
||||
return undefined;
|
||||
}
|
||||
@@ -5815,7 +5815,7 @@ namespace ts {
|
||||
return;
|
||||
}
|
||||
|
||||
let container = getSuperContainer(node, /*includeFunctions*/ false);
|
||||
let container = getSuperContainer(node, /*stopOnFunctions*/ false);
|
||||
|
||||
// If we have a 'super' container, we must have an enclosing class.
|
||||
// Now make sure the owning class is the same as the search-space
|
||||
|
||||
Reference in New Issue
Block a user