-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
The compiler silently ignores a misplaced inline type declaration.
The code below demonstrates this.
// misplaced inline type - no warning for typo.
/** !Aray<!Date> */
let dateArrayIgnoredType = [];
// correct inline type placement - warning for typo.
let /** !Aray<!Date> */ dateArrayInlineType = [];
// non-inline type - warning for typo.
/** @type !Aray<!Date> */
let dateArrayAtType = [];Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels