Reporter | Edward Pavlov (edward.pavlov) |
---|---|
Created | Feb 8, 2012 3:02:57 PM |
Updated | Feb 8, 2012 3:02:57 PM |
Priority | Critical |
Type | Unspecified |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
class Foo
{
public Foo(Action action = null) : this(action, null)
{}
public Foo(Action action, string id = null)
{}
}
}
R# suggests remove "null" from ": this(action, null)" as it is redundant.
Of course after applying this suggestion we got "error CS0516: Constructor 'CaseReproducing.Foo.Foo(System.Action)' cannot call itself" compilation error
{
public Foo(Action action = null) : this(action, null)
{}
public Foo(Action action, string id = null)
{}
}
}
R# suggests remove "null" from ": this(action, null)" as it is redundant.
Of course after applying this suggestion we got "error CS0516: Constructor 'CaseReproducing.Foo.Foo(System.Action)' cannot call itself" compilation error