2015-01-13 10:44:36 +00:00
|
|
|
// CS8046: An expression tree cannot contain a declaration expression
|
|
|
|
// Line: 11
|
2015-04-07 09:35:12 +01:00
|
|
|
// Compiler options: -langversion:experimental
|
2015-01-13 10:44:36 +00:00
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
|
|
class C
|
|
|
|
{
|
|
|
|
static void Main()
|
|
|
|
{
|
|
|
|
Expression<Func<bool>> e = () => Out (out int x);
|
|
|
|
}
|
|
|
|
|
|
|
|
static bool Out (out int value)
|
|
|
|
{
|
|
|
|
value = 3;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|