scala/scala — pull request #1321 by namin (2012-09-16 23:19:52+00:00)
Title: Fixed SI-6353: applyDynamic with sugared applications

- Accept sugared applications such as x(1) if x implements Dynamic,
so x(1) gets re-written to x.apply(1).
- When picking a dynamic rewrite for x.apply(1), favor applyDynamic
instead of the default selectDynamic.

Review by @paulp or @gkossakowski.