JuliaLang/julia

warn on constant redefinition (in package tests)?

開放

#58,670 建立於 2025年6月8日

 (7 則留言) (4 個反應) (0 位負責人)Julia (5,773 個分叉)batch import
help wantedminor change

倉庫指標

星標
 (48,709 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南