[ruby-core:117477] [Ruby master Bug#20417] RubyVM::AbstractSyntaxTree.parse warns about block local variables

9 Apr
2024
9 Apr
'24
9:58 a.m.
Issue #20417 has been reported by kddnewton (Kevin Newton). ---------------------------------------- Bug #20417: RubyVM::AbstractSyntaxTree.parse warns about block local variables https://bugs.ruby-lang.org/issues/20417 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- ``` $ ./ruby -c -w -e '->(; foo) {}' Syntax OK ``` ``` $ ./ruby -w -e 'RubyVM::AbstractSyntaxTree.parse("->(; foo) {}")' (none):1: warning: assigned but unused variable - foo ``` -- https://bugs.ruby-lang.org/
480
Age (days ago)
480
Last active (days ago)
0 comments
1 participants
participants (1)
-
kddnewton (Kevin Newton)