You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Duplicate of many other tickets (though goodness knows what to search for?).
CoffeeScript sees an implicit function call in console.log +'123' because it treats it as console.log (+'123') (compare to JS, which gives you "function log() { [native code] }123").
It is a little weird, though, that it is sometimes allowed: console.log +'123' +'456' compiles to console.log(+'123' + '456'), rather than the syntax error you would get for console.log +'123' (+'456').
a(b).c() + 'a' + c
generatea(b).c() + 'a' + c;
but
a(b).c() +'a' + c
generatea(b).c()(+'a' + c);
The text was updated successfully, but these errors were encountered: