From f6b192beca512678414fd5e60797a064e6cc25a1 Mon Sep 17 00:00:00 2001 From: Sheehan Olver Date: Thu, 3 Jun 2021 11:52:15 +0100 Subject: [PATCH] Update lazyapplying.jl --- src/lazyapplying.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lazyapplying.jl b/src/lazyapplying.jl index af5019bd..e17e28d0 100644 --- a/src/lazyapplying.jl +++ b/src/lazyapplying.jl @@ -301,7 +301,7 @@ function show(io::IO, A::Applied) end applybroadcaststyle(::Type{<:AbstractArray{<:Any,N}}, _2) where N = DefaultArrayStyle{N}() -applybroadcaststyle(::Type{<:AbstractArray{<:Any,N}}, ::LazyLayout) where N = LazyArrayStyle{N}() +applybroadcaststyle(::Type{<:AbstractArray{<:Any,N}}, ::AbstractLazyLayout) where N = LazyArrayStyle{N}() BroadcastStyle(M::Type{<:ApplyArray}) = applybroadcaststyle(M, MemoryLayout(M)) BroadcastStyle(M::Type{<:SubArray{<:Any,N,<:ApplyArray}}) where N = applybroadcaststyle(M, MemoryLayout(M))