codecentric / net_automatic_interface

.Net Source Generator for Automatic Interfaces
MIT License
62 stars 14 forks source link

Properties with the same name and `new` keyword generate duplicate interface members #32

Closed roflmuffin closed 9 months ago

roflmuffin commented 9 months ago

Example code:

public abstract class FirstClass
{
    public IntPtr Handle { get; set; }
}

[GenerateAutomaticInterface]
public partial class SecondClass : FirstClass, ISecondClass
{
    public new IntPtr Handle { get; set; }
}

Generated code:

[GeneratedCode("AutomaticInterface", "")]
public partial interface ISecondClass
{
    /// <inheritdoc />
    nint Handle { get; set; }

    /// <inheritdoc />
    nint Handle { get; set; }
}