summaryrefslogtreecommitdiff
path: root/test/files/run/t7249.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-7249 Reign in overzealous Function0 optimization.Jason Zaugg2013-03-131-0/+7
The fix for SI-1247 went too far, and could result in premature evaluation of the expression that yields the Function0. This commit checks that said expression is safe to inline. If not, a wrapper `() => ....` is still required. The optimization is still enabled in sitations like the original test case, run/t1247.scala.