diff --git a/src/systems/systems.jl b/src/systems/systems.jl index 52f93afb9b..aa7ccce917 100644 --- a/src/systems/systems.jl +++ b/src/systems/systems.jl @@ -1,3 +1,5 @@ +const System = AbstractODESystem + function System(eqs::AbstractVector{<:Equation}, iv, args...; name = nothing, kw...) ODESystem(eqs, iv, args...; name, kw..., checks = false) diff --git a/test/odesystem.jl b/test/odesystem.jl index 5cdce4f2eb..dcda766177 100644 --- a/test/odesystem.jl +++ b/test/odesystem.jl @@ -1806,3 +1806,9 @@ end @test ModelingToolkit.get_metadata(sys) == "TEST" @test ModelingToolkit.get_metadata(sys2) == "TEST" end + +@testset "`System` works as a type" begin + @variables x(t) + @named sys = System([D(x) ~ 2x], t) + @test sys isa System +end