Project

General

Profile

Actions

Bug #17377

closed

A warning message doesn't display using -W option on irb

Added by ima1zumi (Mari Imaizumi) about 4 years ago. Updated about 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.0preview1 (2020-09-25 master 0096d2b895) [x86_64-darwin19]
[ruby-core:101315]

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

Also available in: Atom PDF

Like0
Like0Like0Like0