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 @@ -10356,7 +10356,7 @@ namespace ts {
10356
10356
10357
10357
function getReturnTypeFromJSDocComment(func: SignatureDeclaration | FunctionDeclaration): Type {
10358
10358
const returnTag = getJSDocReturnTag(func);
10359
- if (returnTag) {
10359
+ if (returnTag && returnTag.typeExpression ) {
10360
10360
return getTypeFromTypeNode(returnTag.typeExpression.type);
10361
10361
}
10362
10362
}
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