* [ruby-core:117477] [Ruby master Bug#20417] RubyVM::AbstractSyntaxTree.parse warns about block local variables
@ 2024-04-09 14:58 kddnewton (Kevin Newton) via ruby-core
0 siblings, 0 replies; only message in thread
From: kddnewton (Kevin Newton) via ruby-core @ 2024-04-09 14:58 UTC (permalink / raw
To: ruby-core; +Cc: kddnewton (Kevin Newton)
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 -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-09 14:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-09 14:58 [ruby-core:117477] [Ruby master Bug#20417] RubyVM::AbstractSyntaxTree.parse warns about block local variables kddnewton (Kevin Newton) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).