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
Version Used: Version 17.3.0 Preview 1.0 [32401.348.main]
Steps to Reproduce:
Create a new .NET 6 console app.
Program.cs:
using System.Runtime.Versioning;[assembly:RequiresPreviewFeatures]namespaceSITest{publicclassProgram{publicstaticvoidMain(){}publicstatic T GetOne<T>()whereT:INumber<T>{return T.One;}publicstatic T GetMyOne<T>()whereT:IMyNumber<T>{return T.One;}}publicinterfaceIMyNumber<TSelf>{staticabstractTSelfOne{get;}}}
Version Used: Version 17.3.0 Preview 1.0 [32401.348.main]
Steps to Reproduce:
Create a new .NET 6 console app.
Program.cs:
Add a package reference:
Open in VS and navigate to the
T.One
inside theGetMyOne
method. Then "Go to definition" on theOne
identifier. This goes to the:Now do the same for the
One
inGetOne
method. This shows line (generated from metadata):Expected Behavior:
The static interface methods must be
static abstract
, so the source generated from metadata should include that.Actual Behavior:
The source generated from metadata treats these as normal interface methods (non-static).
/cc @agocke
The text was updated successfully, but these errors were encountered: