diff --git a/lib/NonlinearSolveBase/src/linear_solve.jl b/lib/NonlinearSolveBase/src/linear_solve.jl index 2ad957ab1..c19f51829 100644 --- a/lib/NonlinearSolveBase/src/linear_solve.jl +++ b/lib/NonlinearSolveBase/src/linear_solve.jl @@ -112,7 +112,7 @@ function (cache::NativeJLLinearSolveCache)(; end fix_incompatible_linsolve_arguments(A, b, u) = u -fix_incompatible_linsolve_arguments(::SArray, ::SArray, ::SArray) = u +fix_incompatible_linsolve_arguments(::SArray, ::SArray, u::SArray) = u function fix_incompatible_linsolve_arguments(A, b, u::SArray) (Core.Compiler.return_type(\, Tuple{typeof(A), typeof(b)}) <: typeof(u)) && return u @warn "Solving Linear System A::$(typeof(A)) x::$(typeof(u)) = b::$(typeof(u)) is not \