[Mono-bugs] [Bug 550722] New: System.InvalidOperationException: Parameter out of scope

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 28 12:28:44 EDT 2009


           Summary: System.InvalidOperationException: Parameter out of
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          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
  at System.Linq.Expressions.CompilationContext.AddCompilationUnit
(System.Linq.Expressions.EmitContext parent,
System.Linq.Expressions.LambdaExpression lambda) [0x00000] in <filename
  at System.Linq.Expressions.CompilationContext.AddCompilationUnit
(System.Linq.Expressions.LambdaExpression lambda) [0x00000] in <filename
  at System.Linq.Expressions.LambdaExpression.Compile () [0x00000] in <filename
  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.

More information about the mono-bugs mailing list