Merge remote branch 'upstream/master'
[mono.git] / mcs / errors / cs0854.cs
1 // CS0854: An expression tree cannot contain an invocation which uses optional parameter
2 // Line: 15
3 // Compiler options: -langversion:future
4
5 using System;
6 using System.Linq.Expressions;
7
8 class M
9 {
10         static void Optional (int i, string s = "value")
11         {
12         }
13         
14         public static void Main ()
15         {
16                 Expression<Action> e = () => Optional (1);
17         }
18 }