Skip to content

Commit 4e14611

Browse files
feat: make @named always wrap arguments in ParentScope
1 parent 606a043 commit 4e14611

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
@@ -2282,11 +2282,7 @@ function default_to_parentscope(v)
22822282
uv = unwrap(v)
22832283
uv isa Symbolic || return v
22842284
apply_to_variables(v) do sym
2285-
if !hasmetadata(uv, SymScope)
2286-
ParentScope(sym)
2287-
else
2288-
sym
2289-
end
2285+
ParentScope(sym)
22902286
end
22912287
end
22922288

0 commit comments

Comments
 (0)