Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / errors / cs1540-19.cs
1 // CS1540: Cannot access protected member `AAttribute.AAttribute(int)' via a qualifier of type `AAttribute'. The qualifier must be of type `BAttribute' or derived from it
2 // Line: 17
3
4 using System;
5
6 public class AAttribute : Attribute
7 {
8         public AAttribute ()
9         {
10         }
11
12         protected AAttribute (int a)
13         {
14         }
15 }
16
17 [AAttribute (5)]
18 public class BAttribute : AAttribute
19 {
20         public BAttribute () : base ()
21         {
22         }
23         
24         public BAttribute (int a) : base (a)
25         {
26         }
27 }