Skip to content

Support multi implicit parameter list #2774

Closed
@OlivierBlanvillain

Description

@OlivierBlanvillain

Implicit function type can be curried just fine:

object Test {
  trait T; trait Q
  val a: implicit T => implicit Q => Int = 1

  implicit val q: Q = new Q {}
  val i1: Int = a(new T{})
  implicit val t: T = new T {}
  val i2: Int =  a
}

It would be nice to be able to define a as a def!:

def a(implicit t: T)(implicit q: Q): Int = 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions