Skip to content

Explicit self type can not be found in module #831

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
VladimirNik opened this issue Oct 19, 2015 · 0 comments
Closed

Explicit self type can not be found in module #831

VladimirNik opened this issue Oct 19, 2015 · 0 comments

Comments

@VladimirNik
Copy link
Contributor

Example:

object Test { self =>
  def a = 5
  self.a
}

The compilation result is:

Test.scala:3: error: not found: self
  self.a
  ^
one error found
odersky added a commit to dotty-staging/dotty that referenced this issue Oct 22, 2015
Need to create a self symbols for modules with explicit self type, but need to take
care it is already typed, or sourceModule risks running into CyclicReferences.
odersky added a commit that referenced this issue Oct 22, 2015
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