Skip to content

Commit 040db99

Browse files
feat: make @named always wrap arguments in ParentScope
1 parent 9244358 commit 040db99

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/systems/abstractsystem.jl

+1-5
Original file line numberDiff line numberDiff line change
@@ -2398,11 +2398,7 @@ function default_to_parentscope(v)
23982398
uv = unwrap(v)
23992399
uv isa Symbolic || return v
24002400
apply_to_variables(v) do sym
2401-
if !hasmetadata(uv, SymScope)
2402-
ParentScope(sym)
2403-
else
2404-
sym
2405-
end
2401+
ParentScope(sym)
24062402
end
24072403
end
24082404

0 commit comments

Comments
 (0)