-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Cycle loading extends arguments from TASTy #13814
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
Nice minimization |
The order in which they are loaded seems to be important. If I reverse the file list it works. |
Do you mean a list of tasty files? EDIT: Ah, yes, indeed. I didn't see that |
Slightly disentangled example package bug
class Foo(x: Any)
trait RawXml:
class Value
object Body extends Foo(Text.apply(null)), RawXml
object Text:
def apply(body: Body.Value) = ??? This one fails when compiling |
This test can be added to |
-from-tasty
while compiling from sources works
I am not really sure how to fix this, since I have no experience with -from-tasty. Was there a specific reason to assign this to me? Also: why does the title say "Cycle loading extends arguments from TASTy"? I don't see a cycle? |
object Body extends RawXml(Tei(null).namespace)
|
@odersky, this is not a As I understand it, when we unpickle |
Looks like a duplicate of #12872. |
Ok, reassigning to @bishabosha together with #12872, as I won't have time to work on this for the next month or so. |
Compiler version
Scala compiler version 3.1.1-RC1-bin-SNAPSHOT-git-8947f38 -- Copyright 2002-2021, LAMP/EPFL
Minimized code
Then run:
Output:
compiles successfully
Then run:
Output:
Expectation
Compiles successfully
Disclaimer
I know this minimization is not very obvious but it is as most self-contained as I could achieve.
The error comes from opentorah project and has been reported at Gradle.
The sbt reproduction can be found at this branch https://github.com/BarkingBad/opentorah/blob/repro/base/src/main/scala/org/opentorah/tei/Body.scala though as you can see you can reproduce it using the compiler from dotty directly.
The text was updated successfully, but these errors were encountered: