Skip to content

HK type aliasing bug #3658

@sir-wabbit

Description

@sir-wabbit
object App {
  def main(args: Array[String]): Unit = {
    trait ModuleSig {
      type F[_]
      type Type = F

      def subst[F[_[_]]](fa: F[List]): F[Type]
    }
    val Module: ModuleSig = new ModuleSig {
      type F[A] = List[A]

      def subst[F[_[_]]](fa: F[List]): F[Type] = fa
    }
  }
}

doesn't compile, but if you change

type F[A] = List[A]

to

type F = List

it does...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions