linux-packaging-mono/mcs/tests/gtest-etree-12.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

31 lines
624 B
C#

using System;
using System.Reflection;
using System.Linq.Expressions;
public static class TestCase
{
// This causes all the trouble:
public static bool DUMMY = StaticMethodTakingAnExpression ((i) => true);
public static bool StaticMethodTakingAnExpression (
Expression<Func<object, bool>> expression)
{
// I don't execute the expression here!!!
return false;
}
public static void DummyToMakeTheStaticsInitialize ()
{
// Just a dummy method to make this static class get initialized
}
}
public class Program
{
public static int Main ()
{
TestCase.DummyToMakeTheStaticsInitialize ();
return 0;
}
}