Skip to content

Missing type bound for quoted type splices in patterns #7264

Closed
@nicolasstucki

Description

@nicolasstucki

minimized code

import scala.quoted._
class Foo {
  def f[T](t: Type[T])(given QuoteContext) = t match {
    case '[ *:[Int, $t] ] =>
  }
}

fails with

4 |    case '[ *:[Int, $t] ] =>
  |                     ^
  |                   Type argument $t does not conform to upper bound Tuple 

expectation

Should compile

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions