Skip to content

Commit 50e5906

Browse files
ChrisRackauckasYingboMa
authored andcommitted
don't require numbers for varmap lowering
The only specialization really needed is on Pair. Fixes #727
1 parent a693f29 commit 50e5906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ function lower_mapnames(umap::NTuple{N,T},name) where {N,T<:Pair}
292292
ntuple(i->lower_varname(value(umap[i][1]), name) => value(umap[i][2]),N)
293293
end
294294

295-
lower_mapnames(umap::AbstractArray{<:Number}) = umap # Ambiguity
296-
lower_mapnames(umap::AbstractArray{<:Number},name) = umap
295+
lower_mapnames(umap::AbstractArray) = umap # Ambiguity
296+
lower_mapnames(umap::AbstractArray,name) = umap
297297
lower_mapnames(umap::Tuple) = umap
298298
lower_mapnames(umap::Tuple, name) = umap
299299

0 commit comments

Comments
 (0)