summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0592.cs
blob: 604b5f8337993add70d8cc68318b7b63888f6f95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// CS0592: The attribute `SimpleAttribute' is not valid on this declaration type. It is valid on `constructor' declarations only
// Line : 22

using System;

[AttributeUsage (AttributeTargets.Constructor, AllowMultiple = true)]
	public class SimpleAttribute : Attribute {

		string name = null;

		public string MyNamedArg;
		
		public SimpleAttribute (string name)
		{
			this.name = name;
		}
		
		
	}

[Simple ("Dummy", MyNamedArg = "Dude!")]
	public class Blah {

		public static void Main ()
		{
		}
	}