Add comment
This commit is contained in:
parent
fa6773e685
commit
35addce79e
1 changed files with 1 additions and 0 deletions
|
@ -1017,6 +1017,7 @@ namespace ts {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SyntaxKind.ExpressionWithTypeArguments:
|
case SyntaxKind.ExpressionWithTypeArguments:
|
||||||
|
// The type parameters of a class are not in scope in the base class expression.
|
||||||
if (lastLocation === (<ExpressionWithTypeArguments>location).expression && (<HeritageClause>location.parent).token === SyntaxKind.ExtendsKeyword) {
|
if (lastLocation === (<ExpressionWithTypeArguments>location).expression && (<HeritageClause>location.parent).token === SyntaxKind.ExtendsKeyword) {
|
||||||
const container = location.parent.parent;
|
const container = location.parent.parent;
|
||||||
if (isClassLike(container) && (result = lookup(getSymbolOfNode(container).members, name, meaning & SymbolFlags.Type))) {
|
if (isClassLike(container) && (result = lookup(getSymbolOfNode(container).members, name, meaning & SymbolFlags.Type))) {
|
||||||
|
|
Loading…
Reference in a new issue