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

use Base.promote_op instead of Core.Compiler.return_type #303

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oscardssmith
Copy link

@oscardssmith oscardssmith commented Feb 27, 2024

This moves to using a semi-documented interface from a compiler internal function (and at the same time, fixes the issues with Tuple{Union{}} on 1.10).

This moves to using a documented interface from a compiler internal interface (and at the same time, fixes the issues with `Tuple{Union{}}` on 1.10).
@aplavin
Copy link
Member

aplavin commented Feb 28, 2024

fixes the issues with Tuple{Union{}} on 1.10

Would be useful to add a test demonstrating what's fixed here.

I think Union{} components aren't tested explicitly for now – Union{} was just a regular type that worked same as any other, before 1.10.

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