summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0592-2.cs
blob: 4f573a1d564357f1cd55d9c103f4a3383be742e8 (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
// CS0592: The attribute `MyAttributeAttribute' is not valid on this declaration type. It is valid on `interface' declarations only
// Line : 8

using System;

public interface ITest
{
	[MyAttribute]
	void Method();
}

[AttributeUsage (AttributeTargets.Interface)]
public class MyAttributeAttribute : Attribute
{
}

public class Foo {

        public static void Main ()
        {
        }
}