There appears to be a bug with private constructors and the new terse new() syntax ( Target-typed new leading to
Code Smell: Remove the unused private constructor
public class Foo
{
private Foo()
{
}
public static Foo Create()
{
return new();
}
}