From ad107949fb5149876fe2c42b196a0f46cb7de0db Mon Sep 17 00:00:00 2001 From: hhaensel Date: Tue, 28 May 2024 19:04:46 +0200 Subject: [PATCH] pass kwargs from constructor of abstract model to constructor of concrete model --- src/stipple/reactivity.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stipple/reactivity.jl b/src/stipple/reactivity.jl index 6cb377f7..a4286fb4 100644 --- a/src/stipple/reactivity.jl +++ b/src/stipple/reactivity.jl @@ -424,7 +424,7 @@ macro type(modelname, storage) $output end end) - $modelname() = $modelconst() + $modelname(; kwargs...) = $modelconst(; kwargs...) Stipple.get_concrete_type(::Type{$modelname}) = $modelconst delete!.(Ref(Stipple.DEPS), filter(x -> x isa Type && x <: $modelname, keys(Stipple.DEPS)))