Skip to content

Commit 300f1aa

Browse files
committed
Don't over specialize
1 parent 095ddb8 commit 300f1aa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/systems/connectors.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,12 @@ function generate_connection_set!(connectionsets, domain_csets,
325325
end
326326
neweq isa AbstractArray ? append!(eqs, neweq) : push!(eqs, neweq)
327327
else
328-
if lhs isa Number || lhs isa Symbolic
329-
push!(eqs, eq) # split connections and equations
330-
elseif lhs isa Connection && get_systems(lhs) === :domain
328+
if lhs isa Connection && get_systems(lhs) === :domain
331329
connection2set!(domain_csets, namespace, get_systems(rhs), isouter)
332-
elseif lhs isa StateMachineOperator
333-
else
330+
elseif lhs isa Connection
334331
push!(cts, get_systems(rhs))
332+
else
333+
push!(eqs, eq) # split connections and equations
335334
end
336335
end
337336
end

0 commit comments

Comments
 (0)