Skip to content

Commit 3e55297

Browse files
feat: make @named always wrap arguments in ParentScope
1 parent 47faf84 commit 3e55297

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
@@ -2371,11 +2371,7 @@ function default_to_parentscope(v)
23712371
uv = unwrap(v)
23722372
uv isa Symbolic || return v
23732373
apply_to_variables(v) do sym
2374-
if !hasmetadata(uv, SymScope)
2375-
ParentScope(sym)
2376-
else
2377-
sym
2378-
end
2374+
ParentScope(sym)
23792375
end
23802376
end
23812377

0 commit comments

Comments
 (0)