Skip to content

Problems with hk named parameters in inlining #5390

Open
@odersky

Description

@odersky

The following gives a type error after inlining. On the other hand, passing parameters to construct positionally or by name in the right order works as expected.

import scala.language.experimental.namedTypeArguments

object t1 {
  transparent inline def construct[Elem, Coll[_]](xs: List[Elem]): Coll[Elem] = ??? : Coll[Elem]

  val xs3 = construct[Coll = List](List(1, 2, 3))
}

Test case in branch test-inline on staging.

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