[ruby-core:117477] [Ruby master Bug#20417] RubyVM::AbstractSyntaxTree.parse warns about block local variables
From:
"kddnewton (Kevin Newton) via ruby-core" <ruby-core@...>
Date:
2024-04-09 14:58:00 UTC
List:
ruby-core #117477
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/
______________________________________________
ruby-core mailing list -- [email protected]
To unsubscribe send an email to [email protected]
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/