I have a function like this:
case class SomeCaseClass(i: Int)
def func[T: Manifest](someArg: Int)(implicit i: String) = {
SomeCaseClass(2)
}
I need to call func
and supply i
explicitly
but when I call func[SomeCaseClass](2)("hello")
, I get:
error: not enough arguments for method func: (implicit evidence$1: Manifest[ScalaFiddle.this.SomeCaseClass], implicit i: String)ScalaFiddle.this.SomeCaseClass. Unspecified value parameter i. funcSomeCaseClass("hello")
Any way to do it without changing the function's signature?