-
Notifications
You must be signed in to change notification settings - Fork 12.8k
IIFEs' arguments are not inferred #7601
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
Comments
IIFEs are type checked, the problem is that What you probably expected is for the type of |
Flow can catch the error so it is possible. |
Since this issue was closed, does that mean the Typescript team has no plans of adding this feature? |
Correct; see comments in #4142 |
Version: 1.9.0
Code:
(function (x){ return x.thisPropertyDoesNotExist })("Hi")
Expected Result:
Error type String does not have property thisPropertyDoesNotExist.
Actual Result:
No error
The text was updated successfully, but these errors were encountered: