Skip to content

"method X cannot be accessed" error causes the tree to have an error symbol #8246

Open
@scabug

Description

@scabug

If a method is not accessible, hyperlinking won't work. The type-checker won't assign the right symbol to the corresponding tree, even when there's no ambiguity.

package a {
  object A {
    protected[a] def foo() = ???
  }
}

package b {
  class B {
    a.A.foo() // method foo in object A cannot be accessed in object a.A 
  }
}

'foo' is assigned an error symbol.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions