}
}
- class ZAttribute : Attribute {
+ interface ZInterface {
+ }
+
+ class ZAttribute : Attribute, ZInterface {
}
[X, Z, Serializable]
catch {
}
+ if (typeof (Y).GetCustomAttributes (typeof (ZInterface), true).Length != 1)
+ return 5;
+
+ if (!typeof (Y).IsDefined (typeof (ZInterface), true))
+ return 6;
+
+ // Test that synthetic methods have no attributes
+ if (typeof(int[,]).GetConstructor (new Type [] { typeof (int), typeof (int) }).GetCustomAttributes (true).Length != 0)
+ return 7;
+
return 0;
}
}