Reporter |
|
---|---|
Created | Mar 27, 2018 6:55:27 PM |
Updated | Apr 11, 2018 4:29:39 PM |
Subsystem | Refactorings |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Major |
State | Fixed In Branch |
Type | Bug |
Fix version | Backlog |
Affected versions | 2018.1 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
JetBrains ReSharper Ultimate 2018.1 EAP 5 D Build 12.0.20180327.93554-eap05d.
public ReplaceConstructorWithFactory(int test)
{
}
public int Test { get; set; }
- Invoke Refactor This -> Replace Constructor With Factory Method on
ReplaceConstructorWithFactory
. - Set "Test" as "Factory method name:".
- Click Next.
Actual result:
Uncompilable code.
public static ReplaceConstructorWithFactory Test(int test)
{
return new ReplaceConstructorWithFactory(test);
}
private ReplaceConstructorWithFactory(int test)
{
}
public int Test { get; set; }
Expected result:
Conflicts dialog appears.