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

inference: refine setglobal! rt for invalid assignments #56622

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

aviatesk
Copy link
Member

@nanosoldier runbenchmarks("inference", vs=":master")

Comment on lines 3415 to 3416
elseif !(wnewty <: ty)
return Pair{Any,Any}(newty, TypeError)
Copy link
Member

Choose a reason for hiding this comment

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

use the typeintersect_tfunc here to compute newty most precisely?

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean tmeet(𝕃, newty, ty)?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I guess that is true. Often the types are in the lifted domain, but in this case the partition_restriction is already in the value domain, so the instanceof_tfunc isn't necessary

@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here.

Copy link
Member

@Keno Keno left a comment

Choose a reason for hiding this comment

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

LGTM modulo Jameson's comment

@aviatesk aviatesk merged commit 859c25a into master Nov 21, 2024
3 of 7 checks passed
@aviatesk aviatesk deleted the avi/setglobal! branch November 21, 2024 13:57
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.

4 participants