scala/scala — pull request #1560 by phaller (2012-11-02 18:09:05+00:00)
Title: Backport of #994 (SI-5314 - CPS transform of return statement fails)

Enable return expressions in CPS code if they are in tail position.

This is a backport (intended for 2.9.3) of a fix that has already been merged into 2.10.0-wip (via 2.10.x). The backport was done by cherry-picking the 6 individual commits from pull request #994.

Review by @adriaanm