Say you have the following:
foo(x: String)(y: Int): Int foo(x: String)(y: Double): Int
Scala does not allow such expression. As far as I ca
A simple workaround is to use an anonymous object:
def foo(x: String) = new { def apply(y: Int): Int def apply(y: Double): Int }