Skip to content

inline given ... with not compiling properly #14177

Closed
@kavedaa

Description

@kavedaa

Compiler version

3.0.0, 3.0.1, 3.1.0, 3.1.1-RC2

Minimized code

import scala.compiletime.*

trait C[A]

inline given [Tup <: Tuple]: C[Tup] with
  val cs = summonAll[Tuple.Map[Tup, C]]

Output

Compilation error:

method summonAll is declared as `inline`, but was not inlined

Expectation

Compile successfully, or at least provide a better error message if the construct is indeed invalid.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions