scala: add expression for scala 2.10.x branch.

(cherry picked from commit 1e80c57274b7e2877ac554b5a51f868253fafdc1)