dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.01k stars 4.03k forks source link

F1 on `unmanaged` and `notnull` constraints leads to completely unrelated documentation #65311

Closed jhinder closed 1 year ago

jhinder commented 1 year ago

Version Used: VS 2022 17.5 Preview 1

Steps to Reproduce:

  1. Select the notnull keyword and press F1.
  2. Do the same with the unmanaged keyword.
class C<T1, T2> where T1 : notnull where T2 : unmanaged { }

Expected Behavior: Both keywords open the documentation on type parameter constraints, which is where the respective links on the keywords docs page lead.

Actual Behavior:

jcouv commented 1 year ago

Fix was merged for 17.5. Thanks @jhinder for reporting this