-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Polymer compiling clean under closure recommended flags #5424
Conversation
With these changes we have zero errors and zero warnings with `RECOMMENDED_FLAGS`! Most of the changes were adding `@override` for methods and properties in mixins. Apparently if you implement an interface you need to say `@override` for each method or property on the interface. This combines with our mixin strategy to the tune of needing to add `@override` on every non-private method and property. I'm not sure this is intended behavior of the compiler. Filed google/closure-compiler#3137 to see if it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! I have 1 comment though, as I think that will break projects compiling with TS 3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@azakus got the typescript types compiling too, PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
With these changes we have zero errors and zero warnings with
RECOMMENDED_FLAGS
!Most of the changes were adding
@override
for methods and properties in mixins. Apparently if you implement an interface you need to say@override
for each method or property on the interface. This combines with our mixin strategy to the tune of needing to add@override
on every non-private method and property.I'm not sure this is intended behavior of the compiler. Filed google/closure-compiler#3137 to see if it is.
Downstreamed as cl/220013205