Skip to content

Phase consistency involving higher-kinded types #5962

Closed
@liufengyun

Description

@liufengyun

When a higher-kinded type S is used in quote/splice, do we need an evidence of Type[S] or Type[S[X]]? Neither type checks.

import scala.quoted._
import scala.tasty._

class MatchFactory1[T, S[_]]

object MatcherFactory1 {
  def impl[T: Type, S[_]](self: Expr[MatchFactory1[T, S]])(implicit refl: Reflection, tpS: Type[S[T]]) =
    '{ ~self }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions