ERROR - Missing return statement. Function expected to return SomeType.
someMethod({
I believe this is because we copy the arguments (including the arguments) in the generated interface for the component, and then that gets transpiled down to code in the function body.
A component method of the form:
Produces a warning:
I believe this is because we copy the arguments (including the arguments) in the generated interface for the component, and then that gets transpiled down to code in the function body.
google/closure-compiler#3004 may be related