dotnet/roslyn

Change signature does not add constructor base call

Aperta

#48.111 aperta il 28 set 2020

 (0 commenti) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-IDEBugIDE-CodeStylehelp wanted

Metriche repository

Star
 (20.414 stelle)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

Version Used:

Steps to Reproduce:

class C
{
    public C()
    {
    }
}

class D : C
{
}

Invoke "Change signature" on constructor of C and add a parameter string s.

Expected Behavior:

class C
{
    public C(string s)
    {
    }
}

class D : C
{
  public D(string s) 
    : base(s)
  {
  }  
}

Actual Behavior:

class C
{
    public C(string s)
    {
    }
}

class D : C
{
}

Guida contributor