Skip to content

TODO after 0.7: DomainError() should be equivalent to DomainError(nothing)  #23132

@musm

Description

@musm
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions