coffeescript icon indicating copy to clipboard operation
coffeescript copied to clipboard

CoffeeScript compiler removes explicit parentheses making casts difficult in JSDoc

Open STRd6 opened this issue 3 years ago • 0 comments

https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#casts

b = ###* @type {B} ### (a)

Actual:

// Generated by CoffeeScript 2.6.1
var b;

b = /** @type {B} */a;

Expected:

// Generated by CoffeeScript 2.6.1
var b;

b = /** @type {B} */ (a);

STRd6 avatar May 05 '22 19:05 STRd6