Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

a = b = f 1 #90

Open
BanzaiMan opened this Issue · 1 comment

3 participants

Hiro Asari Brian Shirai Yorick Peterse
Hiro Asari

In http://jira.codehaus.org/browse/JRUBY-6237 it is noted that 1.9.3 (but not 1.9.2) supports

def f(x); x; end

a = b = f 1

as syntactically valid (and both a and b will be assigned f(1), naturally).

There should be a spec for this case, but I wasn't sure where it should go.

Brian Shirai
Owner

The spec would go in method call specs under language.

Unfortunately, I have to now change the language stuff to support separate syntax in 1.9 versions. Which I'm not at all happy about.

In other words, there's no way to add this spec right now.

Hiro Asari BanzaiMan was assigned
Yorick Peterse YorickPeterse added the TODO label
Jesse Cooke jc00ke referenced this issue in rubinius/rubinius
Closed

Method call specs for a = b = f 1 #3266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.