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
Spurious cyclic reference error with package objects and separate compilation #2551
Comments
Unfortunately, this issue is quite a blocker for me, because it prevents Scalameta metaprograms from crosscompiling to Dotty. This pattern of organizing packages is quite pervasive to Scalameta, so I can't see an easy workaround at the moment. I'm reasonably sure that this design pattern worked in earlier builds of Dotty around Sep 2016, because at that time we had meta-based macro annotations expand in scalac, dotc and intellij. Is there an easy way to go back in time to verify this? I'd appreciate if someone could take a quick look at this issue, because I'm a bit overwhelmed with other preparations to Copenhagen. I may also be able to take a stab at fixing this myself if you guys could provide some pointers. |
If the library is compiled with
It is only a problem if both are compiled with |
@liufengyun Thank you for double-checking. Indeed, I was incorrect (that was called by a mixup in my This means that only Scalameta itself can't be crosscompiled by Dotty (well, it can, but then it will be unusable). Scalameta metaprograms can and indeed are successfully crosscompiled. |
@liufengyun Thanks a lot! I'll keep this in mind. |
Notes:
The text was updated successfully, but these errors were encountered: