fix type lookup rule

This commit is contained in:
王文璐
2018-03-27 17:37:19 +08:00
parent dcbc478efa
commit 9b7e5e212f
7 changed files with 56 additions and 4 deletions

View File

@@ -1234,7 +1234,7 @@ namespace ts {
lastLocation.kind === SyntaxKind.Parameter ||
(
lastLocation === (<FunctionLikeDeclaration>location).type &&
result.valueDeclaration.kind === SyntaxKind.Parameter
!!findAncestor(result.valueDeclaration, isParameter)
);
}
}