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

25 lines
448 B
C#

using System;
using System.Linq.Expressions;
public class C
{
static void Conv1(Expression<Func<object, object>> l)
{
}
static void Conv2(Expression<Func<dynamic, dynamic>> l)
{
}
public static void Main ()
{
Expression<Func<object>> e1 = () => (dynamic) 1;
Expression<Func<dynamic>> e2 = () => (object) 1;
Conv1 ((d) => (dynamic) 1);
Conv1 ((dynamic d) => d);
Conv2 ((o) => (object) 1);
Conv2 ((object o) => o);
}
}