http://bugzilla.novell.com/show_bug.cgi?id=550722


           Summary: System.InvalidOperationException: Parameter out of
                    scope
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


using System;
using System.Linq;
using System.Linq.Expressions;

class M
{    
    public static void Main ()
    {
        Expression<Func<string, Expression<Func<string>>>> e = (string s) => ()
=> s;
        e.Compile () ("b").Compile () ();
    }
}


Compile with trunk gmcs and run

Unhandled Exception: System.InvalidOperationException: Parameter out of scope
  at System.Linq.Expressions.ParameterExpression.Emit
(System.Linq.Expressions.EmitContext ec) [0x00000] in <filename unknown>:0 
  at System.Linq.Expressions.LambdaExpression.EmitBody
(System.Linq.Expressions.EmitContext ec) [0x00000] in <filename unknown>:0 
  at System.Linq.Expressions.EmitContext.Emit () [0x00000] in <filename
unknown>:0 
  at System.Linq.Expressions.CompilationContext.AddCompilationUnit
(System.Linq.Expressions.EmitContext parent,
System.Linq.Expressions.LambdaExpression lambda) [0x00000] in <filename
unknown>:0 
  at System.Linq.Expressions.CompilationContext.AddCompilationUnit
(System.Linq.Expressions.LambdaExpression lambda) [0x00000] in <filename
unknown>:0 
  at System.Linq.Expressions.LambdaExpression.Compile () [0x00000] in <filename
unknown>:0 
  at System.Linq.Expressions.Expression`1[System.Func`1[System.String]].Compile
() [0x00000] in <filename unknown>:0 
  at M.Main () [0x00000] in <filename unknown>:0

-- 
Configure bugmail: http://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