1 // CS0854: An expression tree cannot contain an invocation which uses optional parameter
3 // Compiler options: -langversion:future
6 using System
.Linq
.Expressions
;
10 static void Optional (int i
, string s
= "value")
14 public static void Main ()
16 Expression
<Action
> e
= () => Optional (1);