You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add warning to name collision
* fix 1.3 ci
* avoid type collision in module
* fix ci julia min
* test and docstring
* revert docstring change
* apply suggested changes
* test the real description
* support only julia >1.10
* Update src/macro.jl
Co-authored-by: David Müller-Widmann <devmotion@users.noreply.github.com>
* Update src/macro.jl
Co-authored-by: David Müller-Widmann <devmotion@users.noreply.github.com>
* Bump version from 0.2.5 to 0.2.6
* Add more tests
---------
Co-authored-by: David Müller-Widmann <devmotion@users.noreply.github.com>
throw(ArgumentError(LazyString("Type `", T, "` of irrational constant `", sym, "` is already defined in module `", mod, "`.")))
79
+
end
80
+
if sym == T
81
+
throw(ArgumentError(LazyString("The name of the irrational constant (", sym, ") and its type (", T, ") cannot be the same. Please choose a different name for the constant or specify a different type name as the last argument to the macro.")))
Copy file name to clipboardExpand all lines: test/runtests.jl
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -257,3 +257,27 @@ end
257
257
@testset"slow comparisons"begin
258
258
@testiszero(@allocated(3.0<= invsqrt2))
259
259
end
260
+
261
+
# issues #43
262
+
@testset"macro error"begin
263
+
msg ="The name of the irrational constant (Myπ) and its type (Myπ) cannot be the same. Please choose a different name for the constant or specify a different type name as the last argument to the macro."
0 commit comments