From 76c96fb4a556bda6088b998eda8c831821b37504 Mon Sep 17 00:00:00 2001 From: chengchingwen Date: Sun, 1 Jan 2023 14:55:30 +0800 Subject: [PATCH] allow new abstract WalkStyle --- src/StructWalk.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StructWalk.jl b/src/StructWalk.jl index f31dfdf..17575cf 100644 --- a/src/StructWalk.jl +++ b/src/StructWalk.jl @@ -74,7 +74,7 @@ iscontainer(x) = iscontainer(WalkStyle, x) iscontainer(s::WalkStyle, x) = iscontainer(WalkStyle, x) iscontainer(::Type{WalkStyle}, x) = false -const WALKSTYLE = Union{WalkStyle, Type{WalkStyle}} +const WALKSTYLE = Union{WalkStyle, Type{<:WalkStyle}} # default walkstyle for some types include("./walkstyle.jl")