1 // Compiler options: -langversion:future
7 public static int Test (this int a
, int b
= 5, string s
= "")
12 static T Foo
<T
> (T t
, int a
)
17 static void Lambda (Func
<int, int> a
)
22 public static int Main ()
27 if (1.Test (b
: 2) != 5)
30 if (Foo ("n", a
: 4) != "n")
33 if (Foo (t
: "x", a
: 4) != "x")
36 Lambda (a
: (a
) => 1);
40 Lambda (a
: (a
) => var);
42 Console
.WriteLine ("ok");