Project

General

Profile

Actions

Bug #12056

closed

kwarg is not allowed after `return`

Added by nobu (Nobuyoshi Nakada) almost 9 years ago. Updated over 5 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:73723]

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

Actions

Also available in: Atom PDF

Like0
Like0Like0