Skip to content

Conversation

@t6s
Copy link
Contributor

@t6s t6s commented Feb 22, 2023

Typecore.unify_pat_types has two different use-cases: one in type_pat that does not update the environment, and the other in check_counter_example_pat that needs a refine argument and updates the environment.

This PR splits these into two different functions and eliminates the updates to the environment from most parts of type_pat.

This PR subsumes #12020 .

@gasche
Copy link
Member

gasche commented Feb 22, 2023

(Assigning @trefis with his approval, under the new semantics of "person in charge of making that the PR is making progress" (not necessarily making the work themselves).)

@t6s t6s force-pushed the unify_pat_types_refine branch 2 times, most recently from 45ce886 to f9f1af7 Compare March 15, 2023 08:00
@Octachron Octachron self-requested a review March 16, 2023 08:54
Copy link
Member

@gasche gasche left a comment

Choose a reason for hiding this comment

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

Approved. I only made a superficial review (the underlying reason why we needed a reference here is quite subtle and I don't claim to master it), but clearly this is only changing the type-checker in very subtle ways and the testsuite still passes.

@t6s t6s force-pushed the unify_pat_types_refine branch from f9f1af7 to 5b37f49 Compare May 30, 2023 02:03
@t6s
Copy link
Contributor Author

t6s commented May 30, 2023

@gasche Thank you so much for the review. I have rebased and updated the branch.

@gasche gasche merged commit 01c6dce into ocaml:trunk May 30, 2023
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.

4 participants