2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / errors / cs1518-2.cs
1 // cs1518-2.cs : Attributes cannot be applied to namespaces.
2 // Line: 5
3 using System;
4
5 [error_1518(11)]
6 namespace Mono.Tests
7 {
8         [AttributeUsage(AttributeTargets.All)]
9         public class error_1518Attribute : Attribute
10         {
11                 private int x;
12
13                 public error_1518Attribute(int x)
14                 {
15                         this.x = x;
16                 }
17
18                 public int X
19                 {
20                         get
21                         {
22                                 return x;
23                         }
24                 }
25         }
26
27         [error_1518(10)]
28         public class error_1518Class
29         {
30                 public error_1518Class()
31                 {
32                 }
33         }
34 }