Skip to content

Commit e7d56bc

Browse files
committed
Fix set parent! in setproperty!
1 parent dca2ec2 commit e7d56bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RecoPlans/RecoPlans.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function Base.setproperty!(plan::RecoPlan{T}, name::Symbol, x::X) where {T, X}
108108
getfield(plan, :values)[name][] = convert(t, x)
109109
end
110110

111-
if x isa RecoPlan
111+
if x isa AbstractRecoPlan
112112
parent!(x, plan)
113113
end
114114

@@ -219,7 +219,7 @@ export parent!, parentproperty, parentproperties
219219
220220
Set the parent of `plan` to `parent`.
221221
"""
222-
parent!(plan::RecoPlan, parent::RecoPlan) = setfield!(plan, :parent, parent)
222+
parent!(plan::RecoPlan, parent::AbstractRecoPlan) = setfield!(plan, :parent, parent)
223223
"""
224224
parentproperties(plan::RecoPlan)
225225

0 commit comments

Comments
 (0)