Skip to content

Commit d40c74d

Browse files
Merge pull request #450 from adienes/make-VectorOfArrayStyle-constructor-concrete
Make `VectorOfArrayStyle` `::Val` constructor concretely typed
2 parents 016807f + 4b9d9d4 commit d40c74d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vector_of_array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ end
914914
## broadcasting
915915

916916
struct VectorOfArrayStyle{N} <: Broadcast.AbstractArrayStyle{N} end # N is only used when voa sees other abstract arrays
917-
VectorOfArrayStyle(::Val{N}) where {N} = VectorOfArrayStyle{N}()
917+
VectorOfArrayStyle{N}(::Val{N}) where {N} = VectorOfArrayStyle{N}()
918918

919919
# The order is important here. We want to override Base.Broadcast.DefaultArrayStyle to return another Base.Broadcast.DefaultArrayStyle.
920920
Broadcast.BroadcastStyle(a::VectorOfArrayStyle, ::Base.Broadcast.DefaultArrayStyle{0}) = a

0 commit comments

Comments
 (0)