Skip to content
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

Scope completion marks vars and vals accessible through the getters as non-accessible #7995

Closed
scabug opened this issue Nov 22, 2013 · 2 comments
Closed

Comments

@scabug
Copy link

@scabug scabug commented Nov 22, 2013

This is a follow up to #7280.

As stated in the previous ticket, vals and vars available through an import are returned by the scope completion, but they are filtered out by Scala IDE, and not displayed to the user.

The reason the IDE filters them is because they are always marked as non-accessible.

If they can be accessed through the synthetic getters, they should not be mark non-accessible, as referencing them at the location of the completion is valid in code.

Test case:

object Cont {
  val someVal = 2
  private val somePrivateVal = 3
  def longName() {}
}
 
class ImportOut {
  import Cont._
 
  def foo {
    /*_*/   // `longName`, `someVal` and `somePrivateVal` are in the scope members,
            // but `someVal` is marked as inaccessible.
  }
}
@scabug
Copy link
Author

@scabug scabug commented Nov 22, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7995?orig=1
Reporter: @skyluc
Assignee: @skyluc
Affected Versions: 2.10.3, 2.11.0-M7

@scabug
Copy link
Author

@scabug scabug commented Dec 9, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant