Closed GoogleCodeExporter closed 9 years ago
A workaround I'm using right now is
/**
* @return {HTMLElement}
*/
var y = function() {
document.createElement('tbody');
};
var x = (/** @type {HTMLTableSectionElement} */ ((/** @type {Object} */
(y()))));
/** @type {HTMLTableSectionElement} */
var z = x;
Original comment by lgand...@gmail.com
on 16 Apr 2014 at 9:38
The parenthesis after the closing comment are part of the cast syntax:
https://code.google.com/p/closure-compiler/wiki/AnnotatingTypes#Type_Casts
Original comment by blic...@google.com
on 16 Apr 2014 at 9:41
Excuse me very much. This bug issue is wrong again. I think i'll stop
submitting false positives for today.
Original comment by lgand...@gmail.com
on 16 Apr 2014 at 9:42
Original issue reported on code.google.com by
lgand...@gmail.com
on 16 Apr 2014 at 9:35