Actions
Feature #11605
closedRuby should raise on def(a='a', b) [optional param that can't be used]
Feature #11605:
Ruby should raise on def(a='a', b) [optional param that can't be used]
Actions
Added by rosenfeld (Rodrigo Rosenfeld Rosas) almost 11 years ago. Updated almost 5 years ago.
Oh, thanks. I had no idea on how to try this. I've tried a(, 'required'). Actually, I was reading a method like a(req1, opt='opt', req2) and thought it would be impossible to use the default value, but now I understand how optional arguments work in Ruby. Sorry for the confusion.