TypeScript/tests/cases/compiler/jsdocCastCommentEmit.ts
Wesley Wigham c399230767 Retain comments inside return statements (#17557)
* Retain comments inside return statements by including the return keyword in the parse tree

* Revert "Retain comments inside return statements by including the return keyword in the parse tree"

This reverts commit 5d2142edb1.

* Readd test

* Function for handling printing comments on a token
2017-08-08 19:53:53 -07:00

7 lines
130 B
TypeScript

// allowJs: true
// checkJs: true
// outDir: out/
// filename: input.js
function f() {
return /* @type {number} */ 42;
}