Type arguments are not being inferred correctly from method group #73347
Labels
Area-Compilers
Area-Language Design
Resolution-By Design
The behavior reported in the issue matches the current design
untriaged
Issues and PRs which have not yet been triaged by a lead
Version Used: .NET 8
Steps to Reproduce:
It's too weird that you just return the type itself and then it gets inferred.
Expected Behavior:
The compiler can infer the type arguments in both two
Bar
calls.Actual Behavior:
Only the second call
Bar(ReturnMySelf(foo.A<int, int, int, int>))
can infer the type arguments correctly.The text was updated successfully, but these errors were encountered: