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

Wrong visibility on Presentation Compiler completions #5708

Closed
scabug opened this issue Apr 25, 2012 · 4 comments
Closed

Wrong visibility on Presentation Compiler completions #5708

scabug opened this issue Apr 25, 2012 · 4 comments

Comments

@scabug
Copy link

scabug commented Apr 25, 2012

The Presentation Compiler wrongly says that both members in the object are not accessible at the point of completion.

package test

object Compat {
  final val CONST_STRING = "constant"
  lazy val foo = 4
}

class Foo {
  Compat.CONST_STRING // its 'accessible' flag is false
  Compat.foo // its 'accessible' flag is false
}

calling 'askTypeCompletion' in the two cases will return the two object members, but both are flagged as inaccessible at the point of completion.

@scabug
Copy link
Author

scabug commented Apr 25, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5708?orig=1
Reporter: @dragos
Affected Versions: 2.9.2, 2.10.0
Other Milestones: 2.10.0-M3, 2.10.0

@scabug
Copy link
Author

scabug commented Apr 25, 2012

@dragos said:
The IDE won't show completions that are not accessible, so this is a pretty annoying bug.

@scabug
Copy link
Author

scabug commented May 22, 2012

@dragos said:
Fixed in 9d1bc68.

Still needs to be backported to 2.9.x

@scabug
Copy link
Author

scabug commented Dec 17, 2012

@dragos said:
scala/scala#642

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