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

This commit is contained in:
Andy 2018-06-21 10:18:37 -07:00 committed by GitHub
parent 077d64fb83
commit e7b338e943
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

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;

View file

@ -0,0 +1,6 @@
/// <reference path='fourslash.ts' />
////function f</**/
////x
verify.noSignatureHelp("");