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
This is fixed in master. We currently emit (function a() { } as any)().foo() as (function a() { }().foo()); which is valid, thanks to the added enclosing parenthesis. I'll open a PR with a regression test shortly.
weswigham
added a commit
to weswigham/TypeScript
that referenced
this issue
Oct 10, 2017
Input
Expected
Actual
Notice that this produces an un-parenthesized function expression.
Potentially addressable by work in #18300.
The text was updated successfully, but these errors were encountered: