jashkenas/coffeescript

CoffeeScript compiler removes explicit parentheses making casts difficult in JSDoc

STRd6 opened this issue · 0 comments

STRd6 commented

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);