From 57840a37d076302ea74859c76bda8226b9c04d46 Mon Sep 17 00:00:00 2001 From: Thomas Breloff Date: Thu, 5 Jan 2017 15:44:56 -0700 Subject: [PATCH] fix for func assert --- src/series.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/series.jl b/src/series.jl index 6ed0122a..02e9eca2 100644 --- a/src/series.jl +++ b/src/series.jl @@ -361,7 +361,8 @@ end # # as there would be more than one function passed in) @recipe function f{F<:Function}(f::FuncOrFuncs{F}, x) - @assert !(typeof(x) <: FuncOrFuncs) # otherwise we'd hit infinite recursion here + F2 = typeof(x) + @assert !(F2 <: Function || (F2 <: AbstractArray && F2.parameters[1] <: Function)) # otherwise we'd hit infinite recursion here x, f end