diff --git a/src/deprecations.jl b/src/deprecations.jl index 56c166f575..7ccd323060 100644 --- a/src/deprecations.jl +++ b/src/deprecations.jl @@ -175,5 +175,5 @@ macro brownian(xs...) return quote Base.depwarn("`@brownian` is deprecated. Use `@brownians` instead", :brownian_macro) $(@__MODULE__).@brownians $(xs...) - end + end |> esc end diff --git a/test/sdesystem.jl b/test/sdesystem.jl index f60e3a9777..f3bb3ba9c9 100644 --- a/test/sdesystem.jl +++ b/test/sdesystem.jl @@ -948,4 +948,8 @@ end @testset "`@brownian` is deprecated" begin @test_deprecated @brownian a b c + + @brownian p q + @test ModelingToolkit.isbrownian(p) + @test ModelingToolkit.isbrownian(q) end