Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming tagged type does not rename usages of apply and from methods #2

Open
rpiotrow opened this issue Feb 12, 2021 · 0 comments
Open
Labels
bug Something isn't working lewest priority Bug or enhancment that is not relevant

Comments

@rpiotrow
Copy link
Contributor

Starting code:

@tagged object TaggedExample {
  trait NameTag
  type Name = String @@ NameTag
}

object Usage {
  import TaggedExample._
  val name1: Name = Name("sdf")
  val name2: Name = Name.from("sdf")
}

After invoking rename on type Name looks like below (and does not compile):

@tagged object TaggedExample {
  trait NameTag
  type NameRenamed = String @@ NameTag
}

object Usage {
  import TaggedExample._
  val name1: NameRenamed = Name("sdf")
  val name2: NameRenamed = Name.from("sdf")
}
@rpiotrow rpiotrow added bug Something isn't working lewest priority Bug or enhancment that is not relevant labels Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lewest priority Bug or enhancment that is not relevant
Projects
None yet
Development

No branches or pull requests

1 participant