File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -10344,7 +10344,7 @@ namespace ts {
10344
10344
10345
10345
function getReturnTypeFromJSDocComment(func: SignatureDeclaration | FunctionDeclaration): Type {
10346
10346
const returnTag = getJSDocReturnTag(func);
10347
- if (returnTag) {
10347
+ if (returnTag && returnTag.typeExpression ) {
10348
10348
return getTypeFromTypeNode(returnTag.typeExpression.type);
10349
10349
}
10350
10350
}
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