Project

General

Profile

Actions

Bug #17410

closed

One-line pattern-matching deprecation is lost on singular variable assignment

Added by zverok (Victor Shepelev) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:101540]

Description

Is this intentional? Probably an effect of changing the behavior of warning categories?

RUBY_REVISION
# => "1ba8d63b49318e5682a22502c5f5b70e3298da8f" 

[1, 2, 3] => [x, *]
# (irb):8: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!

1 => x
# ....no deprecation...
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0