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

Implement type inference for rest attributes #68

Merged
merged 5 commits into from
Mar 8, 2023
Merged

Implement type inference for rest attributes #68

merged 5 commits into from
Mar 8, 2023

Conversation

figsoda
Copy link
Contributor

@figsoda figsoda commented Mar 8, 2023

No description provided.

@figsoda figsoda marked this pull request as ready for review March 8, 2023 16:16
Copy link
Owner

@oxalica oxalica left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this.

Currently only Ty in database gets updated, not infer::Attrset and InferCtx::unify. Since we doesn't modify or import external Attrset yet, and the rest type only lives in external types, it doesn't hurt much. Let's omit them for now in this PR, but it deserves a TODO on infer::Attrset at least.

crates/ide/src/ty/mod.rs Outdated Show resolved Hide resolved
crates/ide/src/ty/display.rs Outdated Show resolved Hide resolved
crates/ide/src/ty/mod.rs Outdated Show resolved Hide resolved
crates/ide/src/ty/tests.rs Outdated Show resolved Hide resolved
@figsoda figsoda requested a review from oxalica March 8, 2023 21:40
@oxalica oxalica changed the title Implement type inference for fallback attributes Implement type inference for rest attributes Mar 8, 2023
@oxalica oxalica merged commit d101741 into oxalica:main Mar 8, 2023
@figsoda figsoda deleted the rest branch March 8, 2023 22:17
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 this pull request may close these issues.

2 participants