Merge pull request #138 from eisnerd/bug-winforms-datagridview-resize-490247
[mono.git] / mcs / errors / cs0182.cs
index fcc56854b9e097e7ed1d70391747d6b3bcf17fe0..0fbb80f7cfc16509f4522fa7289872eb6c25bf2c 100644 (file)
@@ -1,10 +1,20 @@
-// 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;
+       }
+}