Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gcs0854.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fe15bdb2c8bc4902f458c09a9bfefa56f2790de0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS0854: An expression tree cannot contain an invocation which uses optional parameter
// Line: 15
// Compiler options: -langversion:future

using System;
using System.Linq.Expressions;

class M
{
	static void Optional (int i, string s = "value")
	{
	}
	
	public static void Main ()
	{
		Expression<Action> e = () => Optional (1);
	}
}