Skip to content

Commit 138c568

Browse files
feat: make @named always wrap arguments in ParentScope
1 parent 2f4112e commit 138c568

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,11 +2400,7 @@ function default_to_parentscope(v)
24002400
uv = unwrap(v)
24012401
uv isa Symbolic || return v
24022402
apply_to_variables(v) do sym
2403-
if !hasmetadata(uv, SymScope)
2404-
ParentScope(sym)
2405-
else
2406-
sym
2407-
end
2403+
ParentScope(sym)
24082404
end
24092405
end
24102406

0 commit comments

Comments
 (0)