[sdks] Fix README.md
[mono-project.git] / mcs / tests / test-717.cs
blob3feb2807fac083f34ba67744ade6b66f8a21de57
1 using System;
3 class AA
5 public virtual int Foo (int i)
7 return 1;
11 abstract class A : AA
13 public int Foo (byte b)
15 return 2;
18 public override int Foo (int i)
20 return 4;
24 sealed class B : A
26 public override int Foo (int i)
28 return 3;
31 public void Foo (string s)
36 struct S
38 public override string ToString ()
40 return "aaaa";
44 class MyClass
46 public static int Main ()
48 S s = new S ();
49 string sss = "a" + s.ToString ();
51 B b = new B ();
52 int res = b.Foo (1);
54 if (res != 2)
55 return res;
57 Console.WriteLine ("OK");
58 return 0;