-// cs0182.cs : An attribute argument must be a constant expression, typeof expression or array creation expression
-// Line : 10
-
+// CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression
+// Line: 14
using System;
+using System.Reflection;
-class My : Attribute {
- public My (object obj) { }
+[AttributeUsage (AttributeTargets.All)]
+public class MineAttribute : Attribute {
+ public MineAttribute (object t)
+ {
+ }
}
-[My (null)]
-class T {
- static void Main() {}
-}
+[Mine(new Type [2,2])]
+public class Foo {
+ public static int Main ()
+ {
+ return 0;
+ }
+}