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
int num = 0;
int num2 = 0;
D d = null;
F((num < num2), d > (d ?? d));
The last line was decompiled to F(num < num2, d > (d ?? d));(bracket missing), which num2, d will be considered as generic type arguments of num, and d ?? d as parameter.
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-7.0/pattern-matching#changes-to-syntactic-disambiguation
The generic type arguments may be ambiguous.
Demo on SharpLab
The last line was decompiled to
F(num < num2, d > (d ?? d));(bracket missing), whichnum2, dwill be considered as generic type arguments ofnum, andd ?? das parameter.