Skip to content

Type binding cannot be read from TASTY #3500

Closed
@nicolasstucki

Description

@nicolasstucki

When compiling from tasty (tests in tests/posFromTasty/)

trait Map2[K] {
  def get(k: K): K = k
  def foo: K = {
    this match {
      case that: Map2[b] => that.get(3.asInstanceOf[b])
      case that: Map2[b] => that.get(3.asInstanceOf[K])
      case _ => get(5.asInstanceOf[K])
    }
  }
}

When recompiling the code loaded from tasty, the references of b become redefinitions of b. There are also positions missing from.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions