[msvc] Update csproj files
[mono.git] / mcs / errors / cs0628-3.cs
index 8cdb3085f01af099f522739a7982af43b9855c78..aa094ee172dca4285965aa2f743900ea239215bb 100644 (file)
@@ -1,9 +1,17 @@
-// cs0628.cs: 'B._a': new protected member declared in static class
-// Line: 6
-// Compiler options: -warnaserror -warn:4
+// CS0628: `Test.print_argv(string[])': new protected member declared in sealed class
+// Line: 8
+// Compiler options: -warn:4 -warnaserror
 
-public static class B
-{
-       protected static object _a = null;
-                   
+using System;
+
+internal sealed class Test {
+       protected string print_argv (string[] argv)
+       {
+               if (argv == null)
+                       return "null";
+               else
+                       return String.Join (":", argv);
+       }
+
+       static void Main () { }
 }