-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Cyclic reference involving module class
in Scala3 but compiles in Scala2
#12109
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
Comments
Self-contained: JsonReaderDefaultValue.scala (compile with Scala 2.13)object JsonReaderDefaultValue extends LowPriorityDefaultValue {
class ReaderDefaultValue extends scala.annotation.StaticAnnotation
}
trait LowPriorityDefaultValue {
@JsonReaderDefaultValue.ReaderDefaultValue
class NoDefaultValue
} Test.scalaobject Test {
JsonReaderDefaultValue
} |
Eta expansion needs type parameters which can provoke a cycle. Fixes scala#12109.
Fixes scala#12109 without causing problems elsewhere.
Eta expansion needs type parameters which can provoke a cycle. Fixes scala#12109.
Fixes scala#12109 without causing problems elsewhere.
Eta expansion needs type parameters which can provoke a cycle. Fixes scala#12109.
Fixes scala#12109 without causing problems elsewhere.
Eta expansion needs type parameters which can provoke a cycle. Fixes scala#12109.
Fixes scala#12109 without causing problems elsewhere.
Eta expansion needs type parameters which can provoke a cycle. Fixes scala#12109.
Fixes scala#12109 without causing problems elsewhere.
Eta expansion needs type parameters which can provoke a cycle. Fixes scala#12109.
Fixes scala#12109 without causing problems elsewhere.
Eta expansion needs type parameters which can provoke a cycle. Fixes scala#12109.
Fixes scala#12109 without causing problems elsewhere.
I have a similar issue however for me the code compiles but as soon as I try to publish I also run into EDIT: However still trying to figure out if I can isolate that somehow. |
Cyclic references can have many causes, if the latest nightly doesn't fix your problem, it's likely unrelated to this and you should open a new issue. |
I came to that conclusion too. This seems to be quite complex. My tries to isolate the issue failed so far :( |
If you can't minimize it, it can still be helpful to open an issue if you can provide a reliably way to reproduce the problem (e.g. a branch of a git repo and the command used to compile the code). |
Eta expansion needs type parameters which can provoke a cycle. Fixes scala#12109.
Fixes scala#12109 without causing problems elsewhere.
Compiler version
3.0.0-RC1, 3.0.0-RC2
Minimized code
https://scastie.scala-lang.org/6NSAUSm4Qo2Y9NJbLQrxWw
Output
Expectation
Successful compilation.
Does not reproduce when dependent code is copy-pasted to the same Scastie session.
The text was updated successfully, but these errors were encountered: