Merge pull request #3997 from lateralusX/jlorenss/win-api-family-support-safearray
[mono.git] / mcs / errors / cs0108-3.cs
1 // CS0108: `O.InnerAttribute' hides inherited member `Base.InnerAttribute()'. Use the new keyword if hiding was intended
2 // Line: 12
3 // Compiler options: -warnaserror -warn:2
4
5 using System;
6
7 public class Base
8 {
9     public void InnerAttribute () {}
10 }
11
12 class O: Base
13 {
14     [AttributeUsage(AttributeTargets.Class)]
15     public sealed class InnerAttribute: Attribute {
16     }        
17 }
18
19 class D {
20         static void Main () {}
21 }