Skip to content

Commit 16103a9

Browse files
committed
Fix isSymbolInScopeOfMappedTypeParameter to include mapped types
1 parent f32f95a commit 16103a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/compiler/checker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6864,6 +6864,11 @@ namespace ts {
68646864
}
68656865
}
68666866
break;
6867+
case SyntaxKind.MappedType:
6868+
if (contains(mappedTypes, getDeclaredTypeOfTypeParameter(getSymbolOfNode((<MappedTypeNode>node).typeParameter)))) {
6869+
return true;
6870+
}
6871+
break;
68676872
case SyntaxKind.JSDocFunctionType:
68686873
const func = node as JSDocFunctionType;
68696874
for (const p of func.parameters) {

0 commit comments

Comments
 (0)