2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / gcs0854.cs
blobfe15bdb2c8bc4902f458c09a9bfefa56f2790de0
1 // CS0854: An expression tree cannot contain an invocation which uses optional parameter
2 // Line: 15
3 // Compiler options: -langversion:future
5 using System;
6 using System.Linq.Expressions;
8 class M
10 static void Optional (int i, string s = "value")
14 public static void Main ()
16 Expression<Action> e = () => Optional (1);