Merge pull request #22898 from Kingwl/fix-return-type-lookup-rule

fix type lookup rule
This commit is contained in:
Mohamed Hegazy authored and GitHub committed 2018-03-27 17:01:56 -07:00
commit 4699c829de
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)
);
}
}