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

Delete unnecessary eltype method of CompositeException #54177

Merged
merged 2 commits into from Apr 22, 2024

Conversation

LilithHafner
Copy link
Member

The eltype(::Type) method is already any, no need to specialize on Type{CompositeException}.

julia> eltype(CompositeException())
Any

julia> eltype(CompositeException)
Any

julia> Base.delete_method(@which eltype(CompositeException))

julia> eltype(CompositeException)
Any

julia> eltype(CompositeException())
Any

```julia
julia> eltype(CompositeException())
Any

julia> eltype(CompositeException)
Any

julia> Base.delete_method(@which eltype(CompositeException))

julia> eltype(CompositeException)
Any

julia> eltype(CompositeException())
Any
```
@tecosaur
Copy link
Contributor

I see this was added in 26a5610#diff-32f72b7e244562a3772085ca0dedcd4b717dd0be3535f73959b31e841f46d0aa, which first made it into v0.7.

Testing Julia 1.0, I see that your example still behaves as you demonstrate. Unfortunately, the commit message doesn't give us much to go off, but it's certainly hard to see the problem with removing this.

I'll call this a tentative LGTM :)

@LilithHafner LilithHafner merged commit 4a4d850 into master Apr 22, 2024
4 of 7 checks passed
@LilithHafner LilithHafner deleted the lh/delete-eltype-composite-exception branch April 22, 2024 18:20
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.

None yet

2 participants