Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-5708

Wrong visibility on Presentation Compiler completions

    Details

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              dragos Iulian Dragos
              Reporter:
              dragos Iulian Dragos
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: