Skip to content

redirect_stderr does not redirect method overwritten warnings #56667

@LilithHafner

Description

@LilithHafner
$julia -q --warn-overwrite=yes
julia> f() = 1
f (generic function with 1 method)

julia> g() = @eval f() = 1
g (generic function with 1 method)

julia> g()
WARNING: Method definition f() in module Main at REPL[1]:1 overwritten at REPL[2]:1.
f (generic function with 1 method)

julia> redirect_stderr(g, devnull)
WARNING: Method definition f() in module Main at REPL[2]:1 overwritten on the same line (check for duplicate calls to `include`).
f (generic function with 1 method)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorerror messagesBetter, more actionable error messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions