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

Fix type inference error reported in #43064. #46302

Merged
merged 6 commits into from
Sep 2, 2022
Merged

Conversation

N5N3
Copy link
Member

@N5N3 N5N3 commented Aug 10, 2022

This PR fixes the subtype bug reported in #43064.
Before this PR, exists_subtype would erase the under-processing value in envout if subtype return false, but we should actually keep it as the next subtype_unionall needs it to check whether we have assigned a (different) environment value. 7c76a97 skips the erasing if there are remaing Runions to test.

(#41096 is still broken, as the root cause looks different)

@N5N3 N5N3 added types and dispatch Types, subtyping and method dispatch bugfix This change fixes an existing bug labels Aug 10, 2022
@N5N3 N5N3 marked this pull request as draft August 10, 2022 07:39
@N5N3 N5N3 marked this pull request as ready for review August 10, 2022 08:28
@N5N3 N5N3 force-pushed the subtype_fix branch 2 times, most recently from a6d766e to 3c30f72 Compare August 10, 2022 12:50
@gbaraldi gbaraldi requested a review from aviatesk August 10, 2022 12:51
src/subtype.c Outdated Show resolved Hide resolved
src/subtype.c Outdated Show resolved Hide resolved
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Aug 10, 2022
@N5N3 N5N3 removed the merge me PR is reviewed. Merge when all tests are passing label Aug 11, 2022
@N5N3

This comment was marked as outdated.

@N5N3 N5N3 marked this pull request as draft August 11, 2022 01:27
@N5N3 N5N3 marked this pull request as ready for review August 11, 2022 04:21
@N5N3 N5N3 requested a review from vtjnash August 15, 2022 07:08
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Sep 2, 2022
@N5N3 N5N3 merged commit 24f5331 into JuliaLang:master Sep 2, 2022
@N5N3 N5N3 deleted the subtype_fix branch September 2, 2022 16:47
@DilumAluthge DilumAluthge removed the merge me PR is reviewed. Merge when all tests are passing label Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug types and dispatch Types, subtyping and method dispatch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants