Project

General

Profile

Actions

Bug #20735

closed

prism emits "ambiguous `&`" warning

Added by mame (Yusuke Endoh) 2 months ago. Updated 2 months ago.

Status:
Closed
Target version:
-
[ruby-core:119161]

Description

$ ./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
Actions

Also available in: Atom PDF

Like0
Like0Like0