[utils] Add check for ANDROID_UNIFIED_HEADERS to mono-compiler.h (#5742)
[mono.git] / mcs / errors / cs0182.cs
index 20ddac44aad94b47da016d063938845a796c0690..0fbb80f7cfc16509f4522fa7289872eb6c25bf2c 100644 (file)
@@ -1,14 +1,20 @@
-// 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;
+       }
+}