Skip to content

TASTY: no way to access baseClasses of AppliedType #8514

@pshirshov

Description

@pshirshov

I'm working on re-implementation of izumi-reflect for Dotty.

So far I made some substantial progress but seems like there is a blocker.

The primary problem is: seems like there is no way to get access to baseClasses of a type:

Let's assume that we have the following definitions:

trait X[A, B]
trait A[F[_]]
trait B extends A[X[Int, *]]

On scala2 I can call .baseClasses method on a type of B and get a list containing A[[T] => X[Int, T]].

In dotty AppliedType has only tycon method which does not allow me to inspect applied parents.

See also: 7mind/dotty-typetag-research#2 ; zio/izumi-reflect#22

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions