summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0765.cs
blob: 66a415abfdde5102d4c09112a1e15d8c4cb247f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0765: Partial methods with only a defining declaration or removed conditional methods cannot be used in an expression tree
// Line: 15

using System;
using System.Diagnostics;
using System.Linq.Expressions;

public class C
{
	[Conditional ("DEBUG")]
	public static void TestMethod () { }

	static void Main ()
	{
		Expression<Action> e = () => TestMethod ();
	}
}