JuliaLang/julia

warn on constant redefinition (in package tests)?

Open

#58,670 opened on Jun 8, 2025

View on GitHub
 (7 comments) (4 reactions) (0 assignees)Julia (48,709 stars) (5,773 forks)batch import
help wantedminor change

Description

The command-line option --warn-overwrite=yes, usually turned on while running the test suite of a package, warns on method overwrite. It seems inconsistent, then, that the new, more powerful, feature of constant redefinition does not get warned against in package tests.

Should --warn-overwrite=yes be expanded to warn on the redefinition of each constant?

tags: rebinding, binding partition

Contributor guide