paulbutcher/ScalaMock — Issue #8: Can't compile mocks with methods that has by name parameters
Author: archevel
Created: 2012-02-04 09:06:27+00:00
State: open

The generated mock for the S object in Lift does not compile since it has methods with by name parameters. Below is a simpler example (than the entire S object) that illustrates the issue.

```scala
object Foo {
def foo(s:String)(t:String):List[String] = List(s,t)

def bar(id: String)(f: ⇒ List[(NodeSeq, Option[String])]): List[NodeSeq] = null
}
```

Not sure if this is the only remaining issue with mocking the S object in lift. Will give it a swift try!