-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Issue with: Property cannot be accessed on possibly null value #52
Comments
Flow should warn that you're calling a function that takes 0 arguments with 1 argument no? |
It is a valid point, but issue still exist with updated example:
|
Please use x == null as a workaround. (Known issue about Flow not understanding === undefined.) |
Merging with #21 |
It looks like this is something else, since this doesn't work even with with
I still get
As I said before, I don't get this error when |
@dugokontov did you ever find a solution to this? I'm noticing this issue now with early returns and |
@arb no ): |
I have the same problem :-( |
I have modified your example 03_Null/nulls.js:
When I run flow on this file I get following error:
But, if I move line
var x = null;
inside functionlength
, everything will work as expected. It looks like flow doesn't work well with variables outside it's scope.The text was updated successfully, but these errors were encountered: