summaryrefslogtreecommitdiff
path: root/test/files/run/mock.check
Commit message (Collapse)AuthorAgeFilesLines
* Fleshed out the mock code a little further so i...Paul Phillips2010-11-281-0/+3
Fleshed out the mock code a little further so it's easy for closures to become SAMs. // implicit not necessary, but improves fun factor scala> implicit def mkUFn(x: AnyRef) = scala.tools.reflect.UniversalFn(x) mkUFn: (x: AnyRef)scala.tools.reflect.UniversalFn scala> (() => 5*5*5).as[java.util.concurrent.Callable[Int]] res1: java.util.concurrent.Callable[Int] = <function1> scala> res1.call res2: Int = 125 No review.