Skip to content

Cyclic error involving annotation #4758

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

Closed
allanrenucci opened this issue Jul 4, 2018 · 1 comment
Closed

Cyclic error involving annotation #4758

allanrenucci opened this issue Jul 4, 2018 · 1 comment

Comments

@allanrenucci
Copy link
Contributor

In a file Test1.scala:

package foo.bar

class Bar extends annotation.StaticAnnotation

In a file Test2.scala:

package foo

import foo.bar.Bar

@Bar
class Foo extends annotation.StaticAnnotation

In a file Test3.scala:

package object foo {
  @Foo class Hello
}
dotc Test1.scala Test2.scala Test3.scala
-- Warning: Test2.scala:5:1 ----------------------------------------
5 |@Bar
  | ^^^
  | cyclic import foo.bar.Bar, ignored
-- [E006] Unbound Identifier Error: Test2.scala:5:1 ----------------
5 |@Bar
  | ^^^
  | not found: type Bar
@allanrenucci
Copy link
Contributor Author

This is the closer I could get trying to minimise the cyclic error while compiling the 2.13 standard library. In the 2.13 standard library, it involves the scala package object, the deprecated annotation and the scala.annotation.meta.getter annotation

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

2 participants