1 // Compiler options: -langversion:linq
9 public static int Foo (this int i)
14 public static int Foo (this int i, string s)
25 public static int Foo (this int i)
30 public static int Foo (this int i, bool b)
45 public static bool Foo (this byte i)
55 public static int Foo (this int i)
60 public static void TestX ()
62 int i = 2.Foo (false);
69 public static int Foo (this int i)
74 public static int Main ()
76 if (3.Foo ("a") != 30)
82 if (4.Foo (false) != 20)
85 Console.WriteLine ("OK");