Actions
Bug #12056
closedkwarg is not allowed after `return`
    Bug #12056:
    kwarg is not allowed after `return`
  
Description
Cited from http://aylog.tumblr.com/post/138772421042/return
$ ruby -e 'return foo: :bar'
-e:1: syntax error, unexpected ':', expecting end-of-input
return foo: :bar
           ^
Seems a bug.
https://github.com/ruby/ruby/compare/trunk...nobu:bug/return-kwargs
        
           Updated by shyouhei (Shyouhei Urabe) over 9 years ago
          Updated by shyouhei (Shyouhei Urabe) over 9 years ago
          
          
        
        
      
      cf https://docs.google.com/document/u/2/d/1rj7ODOCSfcsQeBd6-p-NiVwqxDUg05G66LwDOkKOGTw/pub
Matz is negative to this.
        
           Updated by jeremyevans0 (Jeremy Evans) over 6 years ago
          Updated by jeremyevans0 (Jeremy Evans) over 6 years ago
          
          
        
        
      
      - Status changed from Open to Rejected
Actions