paulbutcher/ScalaMock — Issue #4: mock objects for scala objects with  multiple parameter list methods  are not generated properly
Author: archevel
Created: 2012-02-02 19:09:24+00:00
State: open

When mocking an object like:

```scala
object Foo {
def foo(s:String)(t:String):List[String] = List(s,t)
}
```
The generated mock does not compile:

```scala
object Foo extends Mock$$Foo {

def foo(s: String): (t: String)List[String] = if (forwardTo$Mocks != null) forwarder$0(s) else mock$0(s)
// other generated methods here
}
```

As you can see the generated mock does not implement the correct method signature. After the first parameter list it inserts “:” expecting a return type.