Suppress misplacedTypeAnnotation to compile cr.defineProperty with annotation.
/** @type {number} */ cr.defineProperty(a, 'c'); doesn't compile because of the warning misplacedTypeAnnotation. As the warning is from parser, it can not be suppressed by @suppress tag. So this CL suppress the warning by compile option. BUG=421562 Review URL: https://codereview.chromium.org/687453007 Cr-Commit-Position: refs/heads/master@{#302223}
Showing
Please register or sign in to comment