+2005-07-04 Ben Maurer <bmaurer@ximian.com>
+
+ * outline.cs: filter out interfaces in generic constraint clauses
+ that come from the base class.
+
2005-07-04 Ben Maurer <bmaurer@ximian.com>
* outline.cs: use tabs, not spaces, for indentation.
foreach (Type t in args) {
bool first = true;
Type[] ifaces = t.GetInterfaces();
+ ifaces = Array.FindAll<Type> (ifaces, delegate (Type iface) { return !iface.IsAssignableFrom (t.BaseType); });
+
GenericParameterAttributes attrs = t.GenericParameterAttributes & GenericParameterAttributes.SpecialConstraintMask;
GenericParameterAttributes [] interesting = {
GenericParameterAttributes.ReferenceTypeConstraint,
};
if (t.BaseType != typeof (object) || ifaces.Length != 0 || attrs != 0) {
-
o.Write (" where ");
o.Write (FormatType (t));
o.Write (" : ");
}
-
if (t.BaseType != typeof (object)) {
o.Write (FormatType (t.BaseType));
first = false;