Skip to content

Commit

Permalink
Fix use of @nospecialize with default arguments (#3464)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Aug 29, 2023
1 parent b4f0874 commit a061d91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/JuMP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ GenericModel{BigFloat}
```
"""
function GenericModel{T}(
(@nospecialize optimizer_factory) = nothing;
@nospecialize(optimizer_factory = nothing);
add_bridges::Bool = true,
) where {T<:Real}
inner = MOI.Utilities.UniversalFallback(MOI.Utilities.Model{T}())
Expand Down
2 changes: 1 addition & 1 deletion src/optimizer_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ julia> set_optimizer(model, HiGHS.Optimizer; add_bridges = false)
"""
function set_optimizer(
model::GenericModel{T},
(@nospecialize optimizer_constructor);
@nospecialize(optimizer_constructor);
add_bridges::Bool = true,
) where {T}
error_if_direct_mode(model, :set_optimizer)
Expand Down

0 comments on commit a061d91

Please sign in to comment.