Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Begone t1737... | Hubert Plociniczak | 2011-11-02 | 1 | -3/+3 |
| | |||||
* | Fleshed out the mock code a little further so i... | Paul Phillips | 2010-11-28 | 1 | -0/+29 |
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. |