Skip to content

Record-syntax issues #7

Closed
Closed

Description

@TobiasWolters

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.

Activity

  1. Repository owner locked and limited conversation to collaborators on Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions