Skip to content

Commit

Permalink
Add another promote_operation method
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed May 19, 2023
1 parent 0912982 commit 6df73da
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Utilities/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,15 @@ end

### ScalarNonlinearFunction

function promote_operation(
::typeof(-),
::Type{T},
::Type{MOI.ScalarNonlinearFunction},
::Type{T},
) where {T}
return MOI.ScalarNonlinearFunction
end

function promote_operation(
::typeof(-),
::Type{T},
Expand Down

0 comments on commit 6df73da

Please sign in to comment.