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
{{ message }}
Repository navigation
F# compiler does not respect ExperimentalAttribute #18198
The ExperimentalAttribute on a class in a C# library causes expected errors in C# consumer projects.
But this attribute seems to be ignored in F# consumer projects.
With the new properties DiagnosticId and FormatUrl the warning/errors message should account for this. Additionally we should consider converting the warning/error to use extended diagnostic feature so tooling can consume this and show in tooltips ?
Activity
T-Gro commentedon Jan 3, 2025
The attribute https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-12.0/experimental-attribute is a C# feature of C# 12.
The interop with existing https://fsharp.github.io/fsharp-core-docs/reference/fsharp-core-experimentalattribute.html#:~:text=This%20attribute%20is%20used%20to%20tag%20values,that%20are%20part%20of%20an%20experimental%20library%20feature. does not exist.
The attribute's fields matches the proposal from better obsoletion (https://github.com/dotnet/designs/blob/main/accepted/2020/better-obsoletion/better-obsoletion.md#api-changes ), so I think this might be packed under the existing feature request of #8654
#8654 is a open feature request looking for an implementor.
edgarfgp commentedon Jan 6, 2025
With the new properties
DiagnosticIdandFormatUrlthe warning/errors message should account for this. Additionally we should consider converting the warning/error to use extended diagnostic feature so tooling can consume this and show in tooltips ?T-Gro commentedon Jan 6, 2025
Both of the properties should be exposed to tooling, yes .