Closed GoogleCodeExporter closed 9 years ago
JavaScript allows adding properties outside the constructor, and the compiler
can't know if an assignment to a property is a typo or a new property.
If you only want to create new properties in the constructor, use @struct.
https://developers.google.com/closure/compiler/docs/js-for-compiler#tag-struct
Original comment by dim...@google.com
on 18 Mar 2014 at 11:26
Original issue reported on code.google.com by
closure....@gmail.com
on 18 Mar 2014 at 10:03