Skip to content

Commit eaf97f6

Browse files
feat: invalidate cache in @set!
1 parent 8ee5152 commit eaf97f6

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
@@ -826,7 +826,8 @@ end
826826
kwarg = :($(Expr(:kw, :checks, false))) # Inputs should already be checked
827827
return Expr(:block,
828828
Expr(:meta, :inline),
829-
Expr(:call, :(constructorof($obj)), args..., kwarg))
829+
Expr(:call, invalidate_cache!,
830+
Expr(:call, :(constructorof($obj)), args..., kwarg)))
830831
else
831832
error("This should never happen. Trying to set $(typeof(obj)) with $patch.")
832833
end

0 commit comments

Comments
 (0)