X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0617.cs;h=b8d8ab726ed53c008998c80c4cfa361f549ca857;hb=233bbcaaa3aa9f100ef6266236bf0b5a32b49a65;hp=04a97a9f2a36b933becb2ce19c64e7077260f0bc;hpb=a3ea7ceb4d4f5e2cb8ea421313e8939640fb898c;p=mono.git diff --git a/mcs/errors/cs0617.cs b/mcs/errors/cs0617.cs index 04a97a9f2a3..b8d8ab726ed 100644 --- a/mcs/errors/cs0617.cs +++ b/mcs/errors/cs0617.cs @@ -1,26 +1,25 @@ -// cs0617.cs: `MyNamedArg' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, const or read-write properties which are public and not static -// Line : 20 +// CS0617: `MyNamedArg' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, const or read-write properties which are public and not static +// Line : 19 using System; [AttributeUsage (AttributeTargets.Class, AllowMultiple = true)] - public class SimpleAttribute : Attribute { +public class SimpleAttribute : Attribute +{ + string name; - string name = null; - - public readonly string MyNamedArg; - - public SimpleAttribute (string name) - { - this.name = name; - } + public readonly string MyNamedArg; + public SimpleAttribute (string name) + { + this.name = name; } +} [Simple ("Dummy", MyNamedArg = "Dude!")] - public class Blah { +public class Blah { - public static void Main () - { - } + public static void Main () + { } +}