Skip to content

Auto-Inherit Documentation for Interface Member Implementations in Parent Classes #73

@zuobaoquan

Description

@zuobaoquan

When a class implements an interface via a parent class, it would be beneficial if the documentation provided in the interface is automatically inherited by the parent class's implementation of the interface member.

Example

IFoo = interface
  /// documentation
  procedure Test;
end;

TBase = class
  // This method should automatically inherit the documentation from IFoo.Test
  procedure Test;
end;

TFoo = class(TBase, IFoo)
end;

In this scenario, TBase.Test should inherit the documentation from IFoo.Test automatically, eliminating the need to duplicate the documentation comment in the class implementation.

A practical example is TEnumerableBase and TEnumerableBase<T> in Spring.Collections.Base.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions