-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
Consider the following case, using the new record-syntax from C# 9.0:
public class A
{
/// <summary>
/// Int comment
/// </summary>
public int Int { get; set; }
}
/// <summary>
/// B documentation
/// </summary>
/// <param name="Int"><inheritdoc cref="A.Int"/></param>
public record B(int Int);With the current version (1.3.0) of InheritDoc, this results in the following warnings and does not follow the inheritdoc:
- warning CS1574: XML comment has cref attribute 'Int' that could not be resolved
- InheritDocTask warning IDT002: No matching documentation could be found for: T:InheritDocTest.B, which attempts to inherit from: !:A.Int
- No matching documentation could be found for: M:InheritDocTest.B.#ctor(System.Int32), which attempts to inherit from: !:A.Int
Ideally, InheritDoc should be able to resolve the inheritdoc to 'Int comment' without any warnings.
Metadata
Metadata
Assignees
Labels
No labels