Neal Gafter
Neal Gafter
This would not work with the current CLR spec, as stackalloc'ed memory cannot contain references.
> ... I propose to disallow such overloads ... What kind of rule did you have in mind for that?
@scalablecory The params expansion rule in https://github.com/dotnet/csharplang/blob/master/spec/expressions.md#applicable-function-member makes the underlying type of the params parameter (array or span) vanish for the purposes of overload resolution, so I think that doesn't...
I am championing it so that it is considered in conjunction with the cluster of features #110
I'm assuming a CLR change would be required.
The generic code that uses the generic wants to instantiate it, and in order to do that it needs to provide the correct number of type parameters. So the number...
We've been doing triage as time permits. Hopefully we'll be able to triage again in a couple of weeks. I expect this will be tagged "C# 9.0", because we have...
> I would assume this makes it much easier and cleaner for those to be implemented Can you please explain how?
@FunctionalFirst We infer the type arguments to methods, not to types. This is about method type argument inference.
The Roslyn repo is not the place for language proposals. This repo is the right place. You can create a new issue if you think that is appropriate.