[My(typeof(System.Enum))]
class T {
static int Main() {
- object[] a = Attribute.GetCustomAttributes (typeof (T), true);
+ object[] a = Attribute.GetCustomAttributes (typeof (T), false);
if (a.Length != 3)
return 1;
foreach (object o in a) {
Console.WriteLine ("got value: {0}", val);
if (val != 1)
return 2;
- } else if (attr.obj.GetType () == typeof(int)) {
+ } else if (attr.obj.GetType () == typeof(TypeCode)) {
int val = (int)attr.obj;
if (val != (int)TypeCode.Empty)
return 3;