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

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