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.

        Activity

        Hide
        Iulian Dragos added a comment -

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

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

        Fixed in 9d1bc68.

        Still needs to be backported to 2.9.x

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development