Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hint for "constructor extended without explicit qualification" warning doesn't work #57546

Open
nsajko opened this issue Feb 27, 2025 · 1 comment
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior
Milestone

Comments

@nsajko
Copy link
Contributor

nsajko commented Feb 27, 2025

julia> function Tuple end
WARNING: Constructor for type "Tuple" was extended in `Main` without explicit qualification or import.
  NOTE: Assumed "Tuple" refers to `Base.Tuple`. This behavior is deprecated and may differ in future versions.
  NOTE: This behavior may have differed in Julia versions prior to 1.12.
  Hint: If you intended to create a new generic function of the same name, use `function Tuple end`.
  Hint: To silence the warning, qualify `Tuple` as `Base.Tuple` in the method signature or explicitly `import Base: Tuple`.
Tuple

The first hint suggests using function Tuple end will have a different effect than what I did. However function Tuple end is exactly what I did!

Not sure if the hint itself is wrong here, in which case it could be corrected to suggest using global Tuple; function Tuple end, or if function Tuple end on its own should behave differently.

cc @Keno

@nsajko nsajko added the bug Indicates an unexpected problem or unintended behavior label Feb 27, 2025
@Keno
Copy link
Member

Keno commented Feb 27, 2025

function Tuple end

It's supposed to create a new generic function. Something broke here.

@Keno Keno added this to the 1.12 milestone Feb 27, 2025
@Keno Keno self-assigned this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants