Actions
Bug #20735
closedprism emits "ambiguous `&`" warning
    Bug #20735:
    prism emits "ambiguous `&`" warning
  
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
        
           Updated by kddnewton (Kevin Newton) about 1 year ago
          Updated by kddnewton (Kevin Newton) about 1 year ago
          
          
        
        
      
      I have opened https://github.com/ruby/ruby/pull/11622 to fix this.
        
           Updated by kddnewton (Kevin Newton) about 1 year ago
          Updated by kddnewton (Kevin Newton) about 1 year ago
          
          
        
        
      
      - Status changed from Open to Closed
Actions