Warnings cleanup
[mcs.git] / errors / cs0108-3.cs
blob007adee88ee355aa12aece6988a6f4880d2c4cf0
1 // cs0108-3.cs: `O.InnerAttribute' hides inherited member `Base.InnerAttribute()'. Use the new keyword if hiding was intended
2 // Line: 12
3 // Compiler options: -warnaserror -warn:2
5 using System;
7 public class Base
9 public void InnerAttribute () {}
12 class O: Base
14 [AttributeUsage(AttributeTargets.Class)]
15 public sealed class InnerAttribute: Attribute {
19 class D {
20 static void Main () {}