Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0108-3.cs
index d3c28cbd9ebc6d2bbafe9e8597e5d59da19e9bf0..6820e99fb042f66a4ff497952366c8ccdc98739f 100644 (file)
@@ -1,6 +1,6 @@
-// cs0108.cs: The new keyword is required on 'O.InnerAttribute()' because it hides inherited member
+// CS0108: `O.InnerAttribute' hides inherited member `Base.InnerAttribute()'. Use the new keyword if hiding was intended
 // Line: 12
-// Compiler options: -t:library
+// Compiler options: -warnaserror -warn:2
 
 using System;
 
@@ -15,3 +15,7 @@ class O: Base
     public sealed class InnerAttribute: Attribute {
     }        
 }
+
+class D {
+       static void Main () {}
+}