Files
mono/mcs/errors/cs0617.cs
T
Marek Safar 0c31213775 error messages review
svn path=/trunk/mcs/; revision=46724
2005-06-29 14:55:08 +00:00

27 lines
581 B
C#

// 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
using System;
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
public class SimpleAttribute : Attribute {
string name = null;
public readonly string MyNamedArg;
public SimpleAttribute (string name)
{
this.name = name;
}
}
[Simple ("Dummy", MyNamedArg = "Dude!")]
public class Blah {
public static void Main ()
{
}
}