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

Revert #3753 #3754

Merged
merged 1 commit into from
May 23, 2024
Merged
Changes from all commits
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
9 changes: 0 additions & 9 deletions src/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -568,12 +568,3 @@ function Base.complex(
)
return r + im * i
end

if VERSION >= v"1.11.0-alpha1" && isdefined(LinearAlgebra, :haszero)
# See JuMP.jl#3752 for details.
# Introduced by https://github.com/JuliaLang/julia/pull/52528
LinearAlgebra.haszero(::Type{<:AbstractVariableRef}) = true
LinearAlgebra.haszero(::Type{<:GenericAffExpr}) = true
LinearAlgebra.haszero(::Type{<:GenericQuadExpr}) = true
LinearAlgebra.haszero(::Type{<:GenericNonlinearExpr}) = true
end
Loading