Skip to content

Commit

Permalink
Implement copy for CustomSet (#2323)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Sep 3, 2020
1 parent d1b05cd commit b7b865a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ function JuMP.parse_constraint_head(_error::Function, ::Val{:(:=)}, lhs, rhs)
end
struct CustomSet <: MOI.AbstractScalarSet
end
Base.copy(set::CustomSet) = set
function JuMP.build_constraint(_error::Function, func, ::CustomType)
JuMP.build_constraint(_error, func, CustomSet())
end
Expand Down

0 comments on commit b7b865a

Please sign in to comment.