X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0182.cs;h=0fbb80f7cfc16509f4522fa7289872eb6c25bf2c;hb=a794e25f50fde05002e13e54efffa139fd10ae85;hp=fcc56854b9e097e7ed1d70391747d6b3bcf17fe0;hpb=cc1273322562e5ca6bff9f3944b79bed68d84a6d;p=mono.git diff --git a/mcs/errors/cs0182.cs b/mcs/errors/cs0182.cs index fcc56854b9e..0fbb80f7cfc 100644 --- a/mcs/errors/cs0182.cs +++ b/mcs/errors/cs0182.cs @@ -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; + } +}