a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
25 lines
395 B
C#
25 lines
395 B
C#
// 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 ()
|
|
{
|
|
}
|
|
}
|
|
|
|
|