cleol
[mcs.git] / errors / cs0115-3.cs
blobec73c838dabf175290fd560e58c004be49c48d11
1 // CS0115: `MyTestExtended.GetName()' is marked as an override but no suitable method found to override
2 // Line: 12
3 // Compiler options: -r:CS0534-4-lib.dll
5 using System;
6 public class MyTestExtended : MyTestAbstract
8 public MyTestExtended() : base()
12 protected override string GetName() { return "foo"; }
13 public static void Main(string[] args)
15 Console.WriteLine("Calling PrintName");
16 MyTestExtended test = new MyTestExtended();
17 test.PrintName();
18 Console.WriteLine("Out of PrintName");