Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Optional args that self-reference must resolve #2124
The cases in question are in mri/ruby/test_syntax and look basically like this:
def foo(var = var) ... def foo(var: defined?(var)) ...
...and so on. This will likely require parser changes. I am excluding test_keyword_self_reference and test_optional_self_reference now.
Note that test_keyword_self_reference actually triggers a Java exception inside IR: