Skip to content

Cyclic reference compiling stdlib #2633

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
OlivierBlanvillain opened this issue May 31, 2017 · 0 comments
Closed

Cyclic reference compiling stdlib #2633

OlivierBlanvillain opened this issue May 31, 2017 · 0 comments

Comments

@OlivierBlanvillain
Copy link
Contributor

This seems to be related to compilation order. The following fails with a cyclic reference involving class deprecated:

$ sbt "run -language:Scala2 \
  scala2-library/src/library/scala/io/Position.scala \
  scala2-library/src/library/scala/Predef.scala \
  scala2-library/src/library/scala/deprecated.scala"

Compiling with deprecated first leads to a different error:

-- [E006] Unbound Identifier Error: scala2-library/src/library/scala/deprecated.scala:20:1 
20 |@getter @setter @beanGetter @beanSetter
   | ^^^^^^
   | not found: type getter

longer explanation available when compiling with `-explain`
-- [E006] Unbound Identifier Error: scala2-library/src/library/scala/deprecated.scala:20:9 
20 |@getter @setter @beanGetter @beanSetter
   |         ^^^^^^
   |         not found: type setter

longer explanation available when compiling with `-explain`
-- [E006] Unbound Identifier Error: scala2-library/src/library/scala/deprecated.scala:20:17 
20 |@getter @setter @beanGetter @beanSetter
   |                 ^^^^^^^^^^
   |                 not found: type beanGetter

longer explanation available when compiling with `-explain`
-- [E006] Unbound Identifier Error: scala2-library/src/library/scala/deprecated.scala:20:29 
20 |@getter @setter @beanGetter @beanSetter
   |                             ^^^^^^^^^^
   |                             not found: type beanSetter
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