-// cs0108.cs: The new keyword is required on 'O.InnerAttribute()' because it hides inherited member
-// Line: 11
+// CS0108: `O.InnerAttribute' hides inherited member `Base.InnerAttribute()'. Use the new keyword if hiding was intended
+// Line: 12
+// Compiler options: -warnaserror -warn:2
using System;
[AttributeUsage(AttributeTargets.Class)]
public sealed class InnerAttribute: Attribute {
}
-}
\ No newline at end of file
+}
+
+class D {
+ static void Main () {}
+}