Issue #3803 has been updated by Matthew Willson.


Thanks Kenta, yeah that would be great if you get a moment to review the attached patch. I included a regression test and a fix to the rdoc comments. It fixes the issue for me.

The version with comments includes some comments I added to help me figure out what's going on there, the other patch is more minimal.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3803

----------------------------------------
http://redmine.ruby-lang.org