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

Return type inference #7

Open
Alloyed opened this issue Oct 8, 2017 · 0 comments
Open

Return type inference #7

Alloyed opened this issue Oct 8, 2017 · 0 comments

Comments

@Alloyed
Copy link
Owner

Alloyed commented Oct 8, 2017

we can complete simple expressions, like

module.a.b:c()

but only when we know the type of each of the ids. We should be equally informative in these kinds of cases:

local a = { str = return_a_string() }
a.str:m---

or the inline equivalent, like for example

("string"):m
return_a_table().a
assert(module.table).a

These are all built around guessing what the type of a Call or Invoke expression will be and then storing it.

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

No branches or pull requests

1 participant