ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:119161] [Ruby master Bug#20735] prism emits "ambiguous `&`" warning
@ 2024-09-13  2:40 mame (Yusuke Endoh) via ruby-core
  2024-09-13 16:49 ` [ruby-core:119182] " kddnewton (Kevin Newton) via ruby-core
  0 siblings, 1 reply; 2+ messages in thread
From: mame (Yusuke Endoh) via ruby-core @ 2024-09-13  2:40 UTC (permalink / raw)
  To: ruby-core; +Cc: mame (Yusuke Endoh)

Issue #20735 has been reported by mame (Yusuke Endoh).

----------------------------------------
Bug #20735: prism emits "ambiguous `&`" warning
https://bugs.ruby-lang.org/issues/20735

* Author: mame (Yusuke Endoh)
* Status: Open
* Assignee: kddnewton (Kevin Newton)
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
```
$ ./local/bin/ruby -w --parser=parse.y -e 'def foo(&) = nil; foo &:bar'
$ ./local/bin/ruby -w --parser=prism -e 'def foo(&) = nil; foo &:bar'
-e:1: warning: ambiguous `&` has been interpreted as an argument prefix
```



-- 
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/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ruby-core:119182] [Ruby master Bug#20735] prism emits "ambiguous `&`" warning
  2024-09-13  2:40 [ruby-core:119161] [Ruby master Bug#20735] prism emits "ambiguous `&`" warning mame (Yusuke Endoh) via ruby-core
@ 2024-09-13 16:49 ` kddnewton (Kevin Newton) via ruby-core
  0 siblings, 0 replies; 2+ messages in thread
From: kddnewton (Kevin Newton) via ruby-core @ 2024-09-13 16:49 UTC (permalink / raw)
  To: ruby-core; +Cc: kddnewton (Kevin Newton)

Issue #20735 has been updated by kddnewton (Kevin Newton).


I have opened https://github.com/ruby/ruby/pull/11622 to fix this.

----------------------------------------
Bug #20735: prism emits "ambiguous `&`" warning
https://bugs.ruby-lang.org/issues/20735#change-109760

* Author: mame (Yusuke Endoh)
* Status: Open
* Assignee: kddnewton (Kevin Newton)
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
```
$ ./local/bin/ruby -w --parser=parse.y -e 'def foo(&) = nil; foo &:bar'
$ ./local/bin/ruby -w --parser=prism -e 'def foo(&) = nil; foo &:bar'
-e:1: warning: ambiguous `&` has been interpreted as an argument prefix
```



-- 
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/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-13 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-13  2:40 [ruby-core:119161] [Ruby master Bug#20735] prism emits "ambiguous `&`" warning mame (Yusuke Endoh) via ruby-core
2024-09-13 16:49 ` [ruby-core:119182] " 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 NNTP newsgroup(s).