dotnet/roslyn

Change signature does not add constructor base call

オープン

#48,111 opened on 2020/09/28

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDEBugIDE-CodeStylehelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

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
{
}

コントリビューターガイド