https://bugzilla.novell.com/show_bug.cgi?id=463323

User [email protected] added comment
https://bugzilla.novell.com/show_bug.cgi?id=463323#c5





--- Comment #5 from Jan Oravec <[email protected]>  2009-01-26 10:14:40 MST ---
Found test case which triggers it on last SVN revision:

using System;
using System.Linq.Expressions;

class M
{
  public static void Main ()
  {
    while (true)
    {
      LambdaExpression l1 = Expression.Lambda (Expression.Constant (true));
      LambdaExpression l2 = Expression.Lambda (Expression.Constant (1));

      Delegate f1 = l1.Compile ();
      Delegate f2 = l2.Compile ();

      if (f1.DynamicInvoke (null).GetType () != typeof (bool))
        throw new Exception ();
      if (f2.DynamicInvoke (null).GetType () != typeof (int))
        throw new Exception ();
    }
  }
}

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to