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

Display the resultingType of unknown variables #113

Open
davazp opened this issue Aug 9, 2019 · 0 comments
Open

Display the resultingType of unknown variables #113

davazp opened this issue Aug 9, 2019 · 0 comments

Comments

@davazp
Copy link
Member

davazp commented Aug 9, 2019

The self-type of unknown variables is a fresh type varaible, which is not very useful.

However, the resultingType have been exposed to the constraints of the code so it gives nicer information.

For instance, for

(lambda (x) (f 10))

where f is a free variable, the selfType is t1, but the resultingType is (-> ctx number e b)

The resultingType can be used for autocompletion for instance.

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

No branches or pull requests

1 participant