Skip to content

Subclass property incorrectly reported as write-only #1116

Closed
@nex3

Description

@nex3

In the following code:

class Super {
  get foo {}
  set foo(_) {}
}

class Sub extends Super {
  set foo(_) {}
}

The documentation for Sub claims that foo is write-only, despite it extending Super and thus supporting Super.foo as a readable property.

This has comes up in practice with the LineScanner class, whose position field is documented as write-only despite extending SpanScanner. It's also worth noting that LineScanner.position fails to inherit the documentation for SpanScanner.position, although this is probably just the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requesttype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions