Skip to content

Commit 4682f8d

Browse files
fix: check symbolic_type in namespace_expr
1 parent 6d63ffd commit 4682f8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,7 @@ end
13561356
function namespace_expr(
13571357
O, sys, n = nameof(sys); ivs = independent_variables(sys))
13581358
O = unwrap(O)
1359+
symbolic_type(O) == NotSymbolic() && return O
13591360
if any(isequal(O), ivs)
13601361
return O
13611362
elseif iscall(O)

0 commit comments

Comments
 (0)