Actions
Bug #17523
closedInconsistent Warning[] values in scripts loaded by -r option
Description
While -w
option affects $VERBOSE
for both the main and required scripts, but affects Warning[]
values only in the main script.
In this example, Warning[:deprecated]
should be consistent as well as $VERBOSE
.
v.rb¶
p $VERBOSE
p %i[deprecated experimental].to_h{|i|[i,Warning[i]]}
result¶
$ ruby -w -r./v -e 'p $VERBOSE, %i[deprecated experimental].to_h{|i|[i,Warning[i]]}'
true
{:deprecated=>false, :experimental=>true}
true
{:deprecated=>true, :experimental=>true}
patch¶
Actions
Like0
Like0Like0Like0Like0