Project

General

Profile

Actions

Bug #20417

closed

RubyVM::AbstractSyntaxTree.parse warns about block local variables

Added by kddnewton (Kevin Newton) 2 months ago. Updated 2 months ago.

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

Description

$ ./ruby -c -w -e '->(; foo) {}'
Syntax OK
$ ./ruby -w -e 'RubyVM::AbstractSyntaxTree.parse("->(; foo) {}")'
(none):1: warning: assigned but unused variable - foo
Actions #1

Updated by nobu (Nobuyoshi Nakada) 2 months ago

  • Status changed from Open to Closed

Applied in changeset git|207788466eedfdefcf09fdc5c6217547b5ce4ed1.


[Bug #20417] Block local variables do not need to warn about unused

Actions

Also available in: Atom PDF

Like0
Like0