julia> DomainError()
WARNING: DomainError now supports arguments, use `DomainError(value)` or `DomainError(value, msg)` instead.
Stacktrace:
[1] depwarn at .\deprecated.jl:70 [inlined]
[2] DomainError() at .\deprecated.jl:1550
[3] eval(::Module, ::Expr) at .\repl\REPL.jl:3
[4] eval_user_input(::Any, ::Base.REPL.REPLBackend) at .\repl\REPL.jl:69
[5] macro expansion at .\repl\REPL.jl:100 [inlined]
[6] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at .\event.jl:73
while loading no file, in expression starting on line 0
DomainError(nothing, #undef)
IMO this should not throw a warning . Was this intentional so that package authors start using the new feature?