Actions
Bug #17377
closedA 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.
~/development/sandbox
$ ruby -v
ruby 3.0.0preview1 (2020-09-25 master 0096d2b895) [x86_64-darwin19]
~/development/sandbox
$ irb -v
irb 1.2.7 (2020-09-19)
~/development/sandbox
$ irb -W
irb(main):001:0> Object.tainted?
=> false
Actions
Like0
Like0Like0Like0