Don't treat a declaration as a type argument position (#25046)

This commit is contained in:
Andy authored and GitHub committed 2018-06-21 10:18:37 -07:00
1 parent 077d64fb83
commit e7b338e943
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -948,7 +948,7 @@ namespace ts {
token = findPrecedingToken(token.getFullStart(), sourceFile);
if (!token || !isIdentifier(token)) return undefined;
if (!remainingLessThanTokens) {
return { called: token, nTypeArguments };
return isDeclarationName(token) ? undefined : { called: token, nTypeArguments };
}
remainingLessThanTokens--;
break;
@@ -0,0 +1,6 @@
/// <reference path='fourslash.ts' />
////function f</**/
////x
verify.noSignatureHelp("");