This piece of code:
def func *; end
[func "hello"]
is parsed without error in Ruby 1.8.7, but returns a syntax error:
syntax error, unexpected ']', expecting '}'
in Ruby >= 1.9. I looked through What is the difference between Ruby 1.8 and Ruby 1.9, but couldn't find a reference to this. Does anyone know what change is causing this?