[Mono-bugs] [Bug 572071] New: Compilation error with lambda parameters

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 19 16:55:00 EST 2010



           Summary: Compilation error with lambda parameters
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.6.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: PascalFresnay at free.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=337525)
 --> (http://bugzilla.novell.com/attachment.cgi?id=337525)
sample test

Description of Problem:
Failed to compile this code :
"GridExtensions.Grid(null, (IEnumerable<object>)null)
            .Columns(column => {
                column.For(x => x).Attributes(test => "truc");

Steps to reproduce the problem:
1. get attached sample code with needed references
2. gmcs Main.cs -r:MvcContrib

Actual Results:
Main.cs(13,60): error CS0029: Cannot implicitly convert type `string' to
Main.cs(13,60): error CS1662: Cannot convert `lambda expression' to delegate
eric.IDictionary<string,object>>' because some of the return types in the block
are not implicitly convertible to the delegate return type
Compilation failed: 2 error(s), 0 warnings

Expected Results:
No error.

How often does this happen? 

Additional Information:
Works fine with .NET framework 3.5 SP1 C# compiler.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list