dotnet/roslyn
Change signature adds unnecessary argument names
Aberta
#40.489 aberto em 19 de dez. de 2019
Area-IDEConcept-Continuous Improvementhelp wanted
Métricas do repositório
- Stars
- (20.414 estrelas)
- Métricas de merge de PR
- (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)
Description
Version Used: 16.5.0 Preview 2.0 [29615.19.master]
Steps to Reproduce:
class Program
{
static void F(int a, int b, int c)
{
}
static void Main()
{
F(1, b: 2, 3);
}
}
- Invoke change signature on F
- Move parameter
ato the end of the signature.

Expected Behavior:
class Program
{
static void F(int b, int c, int a)
{
}
static void Main()
{
F(b: 2, 3, 1);
}
}
Actual Behavior:
class Program
{
static void F(int b, int c, int a)
{
}
static void Main()
{
F(b: 2, c: 3, a: 1);
}
}