Skip to content
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

Infer type assertions for object #6235

Closed
anandthakker opened this issue Feb 26, 2018 · 1 comment · Fixed by #6243
Closed

Infer type assertions for object #6235

anandthakker opened this issue Feb 26, 2018 · 1 comment · Fixed by #6243
Assignees

Comments

@anandthakker
Copy link
Contributor

From #2434 (comment):

[
  "get", "b",
  ["get", "a"]
]

fails to typecheck with [2]: Expected object but found value instead.. We should be able to infer the ["object", ...] wrapper needed here.

@jfirebaugh
Copy link
Contributor

I though for a minute we didn't even have ["object", ...] yet... but it's just missing from the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants