We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b26d580 commit efc835fCopy full SHA for efc835f
test/model_parsing.jl
@@ -854,3 +854,25 @@ end
854
@test getdefault(vec_false.n[i]) == 1
855
end
856
857
+
858
+@testset "Duplicate names" begin
859
+ mod = @__MODULE__
860
+ @test_throws ErrorException ModelingToolkit._model_macro(mod, :ATest,
861
+ :(begin
862
+ @variables begin
863
+ a(t)
864
865
+ end
866
+ end),
867
+ false)
868
869
870
871
872
873
+ @parameters begin
874
+ a
875
876
877
878
+end
0 commit comments