-// cs0120.cs: An object reference is required for the nonstatic field 'f'
-// Line: 5
-
+// CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression
+// Line: 14
using System;
-[assembly:CLSCompliant (A.f)]
+using System.Reflection;
+
+[AttributeUsage (AttributeTargets.All)]
+public class MineAttribute : Attribute {
+ public MineAttribute (object t)
+ {
+ }
+}
+
-public class A
-{
- public static bool f = true;
-}
\ No newline at end of file
+[Mine(new Type [2,2])]
+public class Foo {
+ public static int Main ()
+ {
+ return 0;
+ }
+}