Skip to content

Commit 660f020

Browse files
feat: invalidate cache in @set!
1 parent bfea782 commit 660f020

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,8 @@ end
825825
kwarg = :($(Expr(:kw, :checks, false))) # Inputs should already be checked
826826
return Expr(:block,
827827
Expr(:meta, :inline),
828-
Expr(:call, :(constructorof($obj)), args..., kwarg))
828+
Expr(:call, invalidate_cache!,
829+
Expr(:call, :(constructorof($obj)), args..., kwarg)))
829830
else
830831
error("This should never happen. Trying to set $(typeof(obj)) with $patch.")
831832
end

0 commit comments

Comments
 (0)