Skip to content

Commit 5e86886

Browse files
authored
Merge pull request #25 from aplavin/patch-1
Fix expr_contains_ref_to for numeric expressions
2 parents fb4b95b + 99cfe04 commit 5e86886

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/enumerable/enumerable_mapmany.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ function expr_contains_ref_to(expr::Function, var_name::Symbol)
3636
return false
3737
end
3838

39+
expr_contains_ref_to(::Number, ::Symbol) = false
40+
3941
function mapmany(source::Enumerable, f_collectionSelector::Function, collectionSelector::Expr, f_resultSelector::Function, resultSelector::Expr)
4042
TS = eltype(source)
4143
# First detect whether the collectionSelector return value depends at all

0 commit comments

Comments
 (0)