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

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=386068#c1





--- Comment #1 from Jan Oravec <[EMAIL PROTECTED]>  2008-06-01 12:25:50 MDT ---
It seems that parameter.ExpressionTreeVariableReference is called without prior
call of parameter.CreateExpressionTreeVariable, so null is returned.

I have tried to create expression tree variable lazily from
ExpressionTreeVariableReference. Compilation succeeded, but execution failed
on:

Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: body
  at System.Linq.Expressions.Expression.Lambda[Predicate`1]
(System.Linq.Expressions.Expression body, IEnumerable`1 parameters) [0x00000] 
  at System.Linq.Expressions.Expression.Lambda[Predicate`1]
(System.Linq.Expressions.Expression body,
System.Linq.Expressions.ParameterExpression[] parameters) [0x00000] 
  at Foo.Goo (Boolean hoo) [0x00000] 
  at Foo.Main () [0x00000] 

I am not sure if my approach is wrong, or there is some other bug, but it is on
compiler side (there is no call to constructor of
System.Linq.Expressions.ConstantExpression in IL code).


-- 
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