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
Truffle currently will not pass the default values for optional arguments up to super calls. E.g.,
class A
def m(x, y, z)
p "A#m(#{x}, #{y}, #{z})"
end
end
class B < A
def m(x, y, z = nil)
super
p "B#m(#{x}, #{y}, #{z})"
end
end
B.new.m(5, 4, 3)
B.new.m(5, 4)
nirvdrum
changed the title
[Truffle] Issue with zsuper calls and option arguments
[Truffle] Issue with zsuper calls and optional arguments
May 15, 2015
Fixed in various commits. There are still limitations if we have both rest arguments and named args, and probably also with unnamed rest args, but these are now documented in failing specs.
Truffle currently will not pass the default values for optional arguments up to
super
calls. E.g.,Running in MRI we get:
In JRuby+Truffle, we get:
The text was updated successfully, but these errors were encountered: