1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
class X { bool ok = false; void Method (X x) { } void Method (string x) { ok = true; } public static int Main () { X x = new X (); x.Method ((string) null); if (x.ok) return 0; return 1; } }