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

WPI: decision on whether to infer a type for a type variable should be made based on explicit annotations #5618

Merged
merged 11 commits into from
Mar 1, 2023

Conversation

kelloggm
Copy link
Contributor

@kelloggm kelloggm commented Feb 8, 2023

If the effective annotations are used, types from previous rounds of inference are considered, leading to flip-flopping behavior in subsequent inference rounds (e.g., in round 1 the type is inferred; in round 2 it is not inferred because it is already present; in round 3 it is no longer present and therefore inferred; etc.).

@kelloggm kelloggm requested review from mernst and smillst February 8, 2023 14:36
smillst
smillst previously approved these changes Feb 8, 2023
… script code that appears to have been copied into the nullness jaifs test from the ainfer-testchecker test
@kelloggm
Copy link
Contributor Author

kelloggm commented Feb 8, 2023

This includes the changes in #5620 now, so we probably should wait to merge this until after that PR is merged.

@kelloggm kelloggm requested a review from smillst March 1, 2023 16:08
@kelloggm kelloggm enabled auto-merge (squash) March 1, 2023 16:08
@kelloggm
Copy link
Contributor Author

kelloggm commented Mar 1, 2023

@smillst I think this PR got overlooked. I'm the original author, so I can't approve it, but the changes you made look good to me. I've set it to auto-merge, so if you approve it and the tests pass, we should be good.

@kelloggm kelloggm assigned smillst and unassigned kelloggm Mar 1, 2023
@kelloggm kelloggm merged commit e84e29e into typetools:master Mar 1, 2023
@kelloggm kelloggm deleted the typevar-return-loop branch March 1, 2023 21:50
wmdietl pushed a commit to eisop/checker-framework that referenced this pull request Mar 7, 2023
…e made based on explicit annotations (typetools#5618)


---------

Co-authored-by: Suzanne Millstein <[email protected]>
Co-authored-by: Michael Ernst <[email protected]>
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.

3 participants