Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Strange error in implicit return of match variable #3104
In some cases implicitly returned match variables ($1) are being incorrectly returned as nil. Using an explicit return fixes the issue. This was seen on jruby 22.214.171.124.rc1.
Here is a simple script that reproduces the issue:
Both parse_char_with_return and parse_char_wo_return should return "A" but the latter returns nil as shown above.
Ok startup interpreter does not have this issue:
Full build interpreter does have this issue:
This is good because it means yet again we can fix this without dipping into the bytecode layer (yay IR). I just tested this on master so it is still broken.