We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c3169 commit b7dd4fdCopy full SHA for b7dd4fd
src/problems/optimization_problems.jl
@@ -151,4 +151,4 @@ end
151
isinplace(f::OptimizationFunction{iip}) where {iip} = iip
152
isinplace(f::OptimizationProblem{iip}) where {iip} = iip
153
154
-Base.getproperty(prob::OptimizationProblem, sym::Symbol) = sym == :x0 ? getfield(prob, :u0) : getfield(prob, sym)
+Base.getproperty(prob::OptimizationProblem, sym::Symbol) = sym === :x0 ? getfield(prob, :u0) : getfield(prob, sym)
0 commit comments