Comments (2)
Overload resolution is not preferring the overload with the more specific params
array type in this case (in BetterFunctionMember).
cc @AlekseyTs
from roslyn.
The code from the repo:
using System;
namespace OverloadResolutionRepro
{
public class Foo
{
public void Method<S>(params Func<Bar, S>[] projections) => throw new NotImplementedException();
public void Method<S>(params Func<Bar, Wrapper<S>>[] projections) => throw new NotImplementedException();
}
public class Bar
{
public Wrapper<int> WrappedValue { get; set; } = new Wrapper<int>();
}
public struct Wrapper<TValue>
{
}
public class EntryPoint
{
static void Main()
{
new Foo().Method(x => x.WrappedValue);
}
}
}
from roslyn.
Related Issues (20)
- Hot Reload: Allow extern functions to be added HOT 2
- Error CS0121 with overloads of params and generic parameters HOT 3
- False positive 'possible null reference argument' after ensuring non-null via the null coalescing operator HOT 1
- Completion Service does not provide all methods available. HOT 5
- C# snippets don't work if LSP Roslyn editor is enabled HOT 1
- Raw string guide line isn't shown in "Peek definition" window
- [API Proposal] Linq-like APIs for analyzers
- Possibly unintended reuse of `ref` local to `in`/`ref readonly` parameters causes unexpected mutation HOT 2
- `System.InsufficientExecutionStackException` thrown in `LocalBinderFactory` compiling `ErrorFacts.IsBuildOnlyDiagnostic()` on MacOS
- Interface-Method: IsSealed does not work as expected HOT 1
- Formatting not working
- Test plan for "First-class Span Types"
- CSC : error CS0041: Unexpected error writing debug information -- 'Insufficient memory to continue the execution of the program.' HOT 13
- Hot reload fails to flow generic constraints to the inherited class HOT 1
- Rename class property changes all occurrences of property name in all comments in project. HOT 2
- Visual Studio operates on outdated cache after git pull again HOT 2
- Stack overflow in `Microsoft.CodeAnalysis.CSharp.Binder.BindBinaryPattern` when getting compiler diagnostics in Roslyn.sln
- Diagnostic is unclear when passing ref readonly to ref readonly parameter using 'ref' HOT 4
- [Automated] PRs inserted in VS build main-34913.43
- Intellisense References not showing correctly when using a Primary-Constructor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roslyn.