[Mono-dev] bug not quite squashed
Bas Smit
basjsmit at gmail.com
Mon Feb 16 16:30:43 EST 2009
Hi,
a couple of hours ago bug
https://bugzilla.novell.com/show_bug.cgi?id=475823got fixed. However a
very similar scenario still fails. Submitted here:
https://bugzilla.novell.com/show_bug.cgi?id=476295
Regards, Bas
using System;
using System.Linq.Expressions;
public class Program
{
static void Main()
{
Expression<Action<IHelper>> e = (helper => helper.DoIt(new Foo()));
var mce = e.Body as MethodCallExpression;
var et = mce.Arguments[0].NodeType;
if (et == ExpressionType.Convert)
Console.WriteLine("Hi from gmcs");
else
Console.WriteLine("Hi from csc");
}
}
public class FooBase { }
public class Foo : FooBase { }
public interface IHelper
{
void DoIt(FooBase foo);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090216/373c3931/attachment.html
More information about the Mono-devel-list
mailing list