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

Restrict any and all` argument type bounds #133

Merged
merged 4 commits into from
Mar 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/Static.jl
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
  • Loading branch information
ChrisRackauckas and devmotion authored Mar 11, 2025
commit af5c6b5510b00544bdbb0af7f39a976d022dd1bf
5 changes: 2 additions & 3 deletions src/Static.jl
Original file line number Diff line number Diff line change
@@ -521,9 +521,8 @@ Base.all(::Tuple{Vararg{True}}) = true
Base.all(::Tuple{Vararg{Union{True, False}}}) = false
Base.all(::Tuple{False, Vararg{False}}) = false

Base.any(::Tuple{True, Vararg{True}}) = true
Base.any(::Tuple{Vararg{Union{True, False}}}) = true
Base.any(::Tuple{Vararg{False}}) = false
Base.any(::Tuple{False, Vararg{False}}) = false
Base.any(::Tuple{Union{True, False}, Vararg{Union{True, False}}}) = true

Base.real(@nospecialize(x::StaticNumber)) = x
Base.real(@nospecialize(T::Type{<:StaticNumber})) = eltype(T)
Loading