Merge pull request #3565 from vargaz/no-free-imt-thunks
[mono.git] / mcs / errors / cs0592-2.cs
1 // CS0592: The attribute `MyAttributeAttribute' is not valid on this declaration type. It is valid on `interface' declarations only
2 // Line : 8
3
4 using System;
5
6 public interface ITest
7 {
8         [MyAttribute]
9         void Method();
10 }
11
12 [AttributeUsage (AttributeTargets.Interface)]
13 public class MyAttributeAttribute : Attribute
14 {
15 }
16
17 public class Foo {
18
19         public static void Main ()
20         {
21         }
22 }
23
24