Skip to content

Commit 5f6f995

Browse files
authored
Update src/Utilities/copy.jl
1 parent 072bdd4 commit 5f6f995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utilities/copy.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ function default_copy_to(dest::MOI.ModelLike, src::MOI.ModelLike)
393393
throw(MOI.AddConstraintNotAllowed{F,S}())
394394
end
395395
else
396-
if !MOI.supports_add_constraint(dest, F, S)
396+
if !MOI.supports_constraint(dest, F, S)
397397
throw(MOI.AddConstraintNotAllowed{F,S}())
398398
end
399399
end

0 commit comments

Comments
 (0)