Given this code:
C#public class C
{
public C(int param1)
{
string param2;
}
}
public static class CUser
{
public static void UseC() => UseC(new C(param1: 0));
public static void UseC(C c) {}
}
When I promote param2 to parameter, I get this:
C#public class C
{
public C(int param1, string param2)
{
}
}
public static class CUser
{
public static void UseC() => UseC(new C(param1: 0), string.Empty);
public static void UseC(C c) {}
}
Instead of this:
C#public class C
{
public C(int param1, string param2)
{
}
}
public static class CUser
{
public static void UseC() => UseC(new C(param1: 0, param2: string.Empty));
public static void UseC(C c) {}
}
Hi Paulo,
Thank you for the code snippets.
I have reproduced the problem. We will try to fix it as soon as possible. Once we fix the problem, we will notify you in the context of the current ticket.