When we have Google Closure Compiler unsafe static casts the parens gets removed when the @type is not directly after /** (whitespace and newlines allowed).
For example the following works as expected:
const style =/**
@type {{
width: number,
}}
*/({
width,
});
Playground Link
But if we have multiline comments with leading * the parens gets stripped:
const style =/**
* @type {{
* width: number,
* }}
*/({
width,
});
and we end up with:
const style = /**
* @type {{
* width: number,
* }}
*/ {
width,
};
Playground Link
Which leads to GCC compile errors.
CC @yangsu
When we have Google Closure Compiler unsafe static casts the parens gets removed when the
@typeis not directly after/**(whitespace and newlines allowed).For example the following works as expected:
Playground Link
But if we have multiline comments with leading
*the parens gets stripped:and we end up with:
Playground Link
Which leads to GCC compile errors.
CC @yangsu