Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0108-3.cs
index 9d1b71bb1ac0013a845a7154ab90a89c001833d4..6820e99fb042f66a4ff497952366c8ccdc98739f 100644 (file)
@@ -1,5 +1,6 @@
-// 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;
 
@@ -13,4 +14,8 @@ class O: Base
     [AttributeUsage(AttributeTargets.Class)]
     public sealed class InnerAttribute: Attribute {
     }        
-}
\ No newline at end of file
+}
+
+class D {
+       static void Main () {}
+}