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 invalidation in show_unquoted #38265

Merged
merged 1 commit into from
Nov 2, 2020
Merged

Fix invalidation in show_unquoted #38265

merged 1 commit into from
Nov 2, 2020

Conversation

nalimilan
Copy link
Member

Without this assertion arg1 is inferred as Any, and the method gets invalidated when loading CategoricalArrays (JuliaData/CategoricalArrays.jl#177 (comment)). Not sure why the compiler isn't able to detect the type automatically given the isa checks in the if.

Without this assertion `arg1` is inferred as `Any`, and the method gets invalidated when
loading CategoricalArrays. Not sure why the compiler isn't able to detect the type
automatically given the `isa` checks in the `if`.
Copy link
Sponsor Member

@timholy timholy left a comment

Choose a reason for hiding this comment

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

You nailed it. Very impressive as always, @nalimilan!

Inference doesn't seem to always propagate type information across logical operators, but I don't have an explanation why.

@timholy timholy added the compiler:latency Compiler latency label Nov 2, 2020
@timholy timholy merged commit e68dda9 into master Nov 2, 2020
@timholy timholy deleted the nl/invalidation branch November 2, 2020 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:latency Compiler latency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants