Actions
Bug #17377
closedA warning message doesn't display using -W option on irb
Bug #17377:
A warning message doesn't display using -W option on irb
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.0preview1 (2020-09-25 master 0096d2b895) [x86_64-darwin19]
Description
Expected¶
Using -W option, a warning statement display when deprecated method call.
$ irb -W
irb(main):001:0> Object.tainted?
(irb):1: warning: Object#tainted? is deprecated and will be removed in Ruby 3.2
=> false
Actual¶
Although using -W option, a warning statement doesn't display when deprecated method call.
Updated by osyo (manga osyo) over 5 years ago
Updated by jeremyevans0 (Jeremy Evans) over 5 years ago
irb -W only sets $VERBOSE = true, it doesn't enable deprecation warnings, unlike ruby -W. Similar issue with irb -w. I've submitted a pull request to irb: https://github.com/ruby/irb/pull/145
Updated by aycabta (aycabta .) over 5 years ago
- Status changed from Open to Closed
Thank you for reporting and the Pull Request!
Actions