Error when use method with multiple parameter list
polkx opened this issue · 2 comments
polkx commented
Code to test:
package test
import cats.implicits._
import sloth.Router
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
trait Api {
def fun(a: Int, b: String)(c: Double): Future[Int]
}
object ApiImpl extends Api {
def fun(a: Int, b: String)(c: Double): Future[Int] = Future(0)
}
object Test extends App {
Router[String, Future].route[Api](ApiImpl)
}
When i run the above code i get an error. Does this library support multiple parameter list? How can i solve this problem?
Error:
type mismatch;
found : String
required: Double
Router[String, Future].route[Api] (ApiImpl)