fix type lookup rule

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

No files matched your search

+1 -1
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)
);
}
}