Skip to content

[1.12] WARNING: using Foo in module Main conflicts with an existing identifier. warnings gone #58692

Open
@adienes

Description

@adienes

I'm sorry to duplicate this question in several places but I'm having a tough time getting an answer: in 1.12 it seems that in cases like

julia> x = 1
1

julia> module Foo
           export x
           x = 2
       end
Main.Foo

julia> using .Foo
WARNING: using Foo.x in module Main conflicts with an existing identifier.

a warning is no longer emitted. I'm sure of course this is related to all the const redefinition stuff, but to me this seems like a UX regression as patterns like this are a common footgun and rarely intended. was this removal intentional? if not, could it be restored?

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