Skip to content

Type inference for structs and type checking for dot/remote #13518

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

Merged
merged 4 commits into from
Apr 30, 2024

Conversation

josevalim
Copy link
Member

With this pull request, we now warn:

  • expr.field when expr may not be a map
  • expr.call() when expr may not be an atom
  • expr.call(...) when expr may not be an atom
  • &expr.foo/1 when expr may not be an atom

Furthermore, we lay down the ground work for checking undefined and deprecation warnings across unions. For example, if you write this code:

mod = if something?, do: Foo, else: Bar
mod.some_function()

In the future, it will warn if any of Foo OR Bar do not define the relevant function.

Finally, we improve pretty printing of maps and aliases.

@josevalim josevalim merged commit 514355f into main Apr 30, 2024
17 of 18 checks passed
@josevalim josevalim deleted the jv-map-types branch April 30, 2024 12:15
@josevalim
Copy link
Member Author

💚 💙 💜 💛 ❤️

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

Successfully merging this pull request may close these issues.

2 participants