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

NoSuchFieldError when changing type parameter on enum case (incremental compilation) #6677

Closed
DReigada opened this issue Jun 13, 2019 · 0 comments
Assignees

Comments

@DReigada
Copy link
Contributor

If we compile the following enum:

enum Foo[A] {
  case Bar extends Foo[Int] // -> Foo[String]
}

Then change the case to case Bar extends Foo[String] and recompile the code (using sbt) without cleaning, any usages of Bar (from another source file) throw NoSuchFieldError.
If the project is cleaned before running again this works without any problem

Project with reproducible example: https://github.com/DReigada/dotty-runtime-error-sample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants