Skip to content

infer binding types by use #234

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 7 commits into from
Jan 12, 2021
Merged

infer binding types by use #234

merged 7 commits into from
Jan 12, 2021

Conversation

ZacLN
Copy link
Contributor

@ZacLN ZacLN commented Jan 11, 2021

Some extra type inference.
Finds all the instances where a binding is used as the argument to a function call and then finds the intersect of possible types for that argment position. Only works in fairly simple cases (e.g. no handling for abstract types or unions of types).

Restricted to not run on the top-level scope.

@ZacLN ZacLN added this to the Next Patch milestone Jan 11, 2021
@ZacLN ZacLN self-assigned this Jan 11, 2021
pfitzseb
pfitzseb previously approved these changes Jan 11, 2021
Co-authored-by: Sebastian Pfitzner <[email protected]>
pfitzseb
pfitzseb previously approved these changes Jan 11, 2021
@ZacLN
Copy link
Contributor Author

ZacLN commented Jan 12, 2021

Sorry- I accidently added a commit to this

@pfitzseb pfitzseb merged commit 2b039f8 into master Jan 12, 2021
@davidanthoff davidanthoff deleted the typeinf branch January 12, 2021 17:10
@oppo-source oppo-source removed the request for review from a team April 16, 2021 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants