Static types refered by ctor base calls are not considered. In the following case the type BaseCtorCall has no dependency to StaticType, which in fact is wrong. Fixed by considering FieldReferences during Method visiting.
public struct Id { }
public static class StaticType
{
public static readonly Id SomeId;
}
public abstract class BaseCtorCallBase
{
protected BaseCtorCallBase(params Id[] ids)
{
}
}
public class BaseCtorCall : BaseCtorCallBase
{
public BaseCtorCall() : base(StaticType.SomeId) { }
}
Static types refered by ctor base calls are not considered. In the following case the type BaseCtorCall has no dependency to StaticType, which in fact is wrong. Fixed by considering
FieldReferences
during Method visiting.