You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, using the "_" hides the second param to be used when super is called.
If the definition of x in B uses named params like
def x(a, b)
it works as expected.
Environment
jruby -v:
jruby 9.1.5.0 (2.3.1) 2016-09-07 036ce39 Java HotSpot(TM) 64-Bit Server VM 25.91-b14 on 1.8.0_91-b14 +jit [linux-x86_64]
this can be reproduced in plain irb easily.
The text was updated successfully, but these errors were encountered:
heisee
changed the title
Unexpected behaviour when calling super while two "_" params are used
Calling super with two "_" params ignores the value of the second
Oct 11, 2016
Hello JRuby team,
whit this code
in MRI Ruby 2.3 and JRuby 1.7 it prints
while in JRuby 9.1.5.0 it prints
So, using the "_" hides the second param to be used when super is called.
If the definition of x in B uses named params like
it works as expected.
Environment
jruby 9.1.5.0 (2.3.1) 2016-09-07 036ce39 Java HotSpot(TM) 64-Bit Server VM 25.91-b14 on 1.8.0_91-b14 +jit [linux-x86_64]
The text was updated successfully, but these errors were encountered: