You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following example, we use Base.I as the positional member (ie. it is used as part of C.Deconstruct synthesized method). But it is hidden by the method C.I.
From discussion in LDM 4/14/2021, we decided to make this an error and take this as a breaking change for 16.10.
public record Base
{
public int I { get; set; } = 42;
public Base(int ignored) { }
}
public record C(int I) : Base(I)
{
public void I() { } // hiding
}
The text was updated successfully, but these errors were encountered:
In the following example, we use
Base.I
as the positional member (ie. it is used as part ofC.Deconstruct
synthesized method). But it is hidden by the methodC.I
.From discussion in LDM 4/14/2021, we decided to make this an error and take this as a breaking change for 16.10.
The text was updated successfully, but these errors were encountered: