2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / tests / cattr-object.cs
index 3d47a258da82464893dc6b9478ad2349cfe6484d..51db9c5ae58a1c7bc78ba174ac949a83eb27f18c 100644 (file)
@@ -5,7 +5,7 @@ using System;
 [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) {
@@ -15,7 +15,7 @@ class T {
                                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;