From: "kddnewton (Kevin Newton) via ruby-core" Date: 2024-09-13T16:49:05+00:00 Subject: [ruby-core:119182] [Ruby master Bug#20735] prism emits "ambiguous `&`" warning 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/