18 lines
297 B
C#
Raw Permalink Normal View History

// CS0854: An expression tree cannot contain an invocation which uses optional parameter
// Line: 15
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);
}
}