Skip to content

Commit 35addce

Browse files
committed
Add comment
1 parent fa6773e commit 35addce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,7 @@ namespace ts {
10171017
}
10181018
break;
10191019
case SyntaxKind.ExpressionWithTypeArguments:
1020+
// The type parameters of a class are not in scope in the base class expression.
10201021
if (lastLocation === (<ExpressionWithTypeArguments>location).expression && (<HeritageClause>location.parent).token === SyntaxKind.ExtendsKeyword) {
10211022
const container = location.parent.parent;
10221023
if (isClassLike(container) && (result = lookup(getSymbolOfNode(container).members, name, meaning & SymbolFlags.Type))) {

0 commit comments

Comments
 (0)