Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0592-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 37ca78caf65393ea24bc6cfa62051ff8e8dd8332 (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-2.cs : Attribute 'MyAttribute' 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 ()
        {
        }
}