File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -10356,7 +10356,7 @@ namespace ts {
1035610356
1035710357 function getReturnTypeFromJSDocComment(func: SignatureDeclaration | FunctionDeclaration): Type {
1035810358 const returnTag = getJSDocReturnTag(func);
10359- if (returnTag) {
10359+ if (returnTag && returnTag.typeExpression ) {
1036010360 return getTypeFromTypeNode(returnTag.typeExpression.type);
1036110361 }
1036210362 }
Original file line number Diff line number Diff line change 1+ /// <reference path="fourslash.ts" />
2+
3+ // @allowNonTsExtensions : true
4+ // @Filename : file.js
5+ //// /**
6+ //// * This is a very cool function that is very nice.
7+ //// * @returns something
8+ //// */
9+ //// function a1() {
10+ //// try {
11+ //// throw new Error('x');
12+ //// } catch (x) { x--; }
13+ //// return 23;
14+ //// }
15+ ////
16+ //// x - /**/a1()
17+
18+ goTo . marker ( ) ;
19+ verify . quickInfoExists ( ) ;
You can’t perform that action at this time.
0 commit comments