[ruby-core:119161] [Ruby master Bug#20735] prism emits "ambiguous `&`" warning

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/

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/
participants (2)
-
kddnewton (Kevin Newton)
-
mame (Yusuke Endoh)