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

          Hide
          dragos Iulian Dragos added a comment -

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

          Show
          dragos Iulian Dragos added a comment - The IDE won't show completions that are not accessible, so this is a pretty annoying bug.
          Hide
          dragos Iulian Dragos added a comment -

          Fixed in 9d1bc68.

          Still needs to be backported to 2.9.x

          Show
          dragos Iulian Dragos added a comment - Fixed in 9d1bc68 . Still needs to be backported to 2.9.x
          Show
          dragos Iulian Dragos added a comment - https://github.com/scala/scala/pull/642

            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: