Skip to content

Commit 03ba086

Browse files
feat: make @named always wrap arguments in ParentScope
1 parent 35747a1 commit 03ba086

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
@@ -2375,11 +2375,7 @@ function default_to_parentscope(v)
23752375
uv = unwrap(v)
23762376
uv isa Symbolic || return v
23772377
apply_to_variables(v) do sym
2378-
if !hasmetadata(uv, SymScope)
2379-
ParentScope(sym)
2380-
else
2381-
sym
2382-
end
2378+
ParentScope(sym)
23832379
end
23842380
end
23852381

0 commit comments

Comments
 (0)