[Mono-bugs] [Bug 378189] gmcs requires void-returning invocation in lambda expression

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 16 20:07:52 EDT 2008


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

User m.david at xmlhacker.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=378189#c3


M. David Peterson <m.david at xmlhacker.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |m.david at xmlhacker.com




--- Comment #3 from M. David Peterson <m.david at xmlhacker.com>  2008-06-16 18:07:52 MDT ---
As well at rev. 105925

In my particular case, this bug makes itself know via:

Bug: "Cannot convert type `lambda expression' to `System.Action'"

    ./Async.cs(143,29): error CS1502: The best overloaded method match for
`EeekSoft.Asynchronous.AsyncExtensions.Run(System.Collections.Generic.IEnumerator<EeekSoft.Asynchronous.IAsync>,
System.Action)' has some invalid arguments
    ./Async.cs(189,30): (Location of the symbol related to previous error)
    ./Async.cs(143,29): error CS1503: Argument 2: Cannot convert type `lambda
expression' to `System.Action'


This bug makes itself known on recent SVN revisions but -- strangely --
compiles just fine on 1.9.1
Compiles as expect on MS.NET

Steps to repro:  Using recent SVN revision,

    svn co
http://nuxleus.googlecode.com/svn/trunk/nuxleus/Source/Nuxleus.Extension.Linq/
    co Nuxleus.Extension.Linq
    gmcs -t:library -recurse:*.cs -r:System.Xml -r:System.Xml.Linq
-out:Nuxleus.Extension.Aws.dll


Expected results: As per release 1.9.1,

    $ which mono
    /usr/bin/mono
    $ mono -V
    Mono JIT compiler version 1.9.1 (tarball)
    Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
            TLS:           __thread
            GC:            none
            SIGSEGV:       altstack
            Notifications: epoll
            Architecture:  amd64
            Disabled:      none
    $ gmcs -t:library -recurse:*.cs -r:System.Xml
-r:/usr/lib/mono/3.5/System.Xml.Linq -out:Nuxleus.Extension.Aws.dll
    $


Actual results: As per SVN 105925 (tarbal)

    $ which mono
    /usr/bin/mono
    $ mono -V
    Mono JIT compiler version 105925 (tarball)
    Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
            TLS:           __thread
            GC:            Included Boehm (with typed GC)
            SIGSEGV:       altstack
            Notifications: epoll
            Architecture:  amd64
            Disabled:      none
    $ gmcs -t:library -recurse:*.cs -r:System.Xml -r:System.Xml.Linq
-out:Nuxleus.Extension.Aws.dll
    ./Async.cs(143,29): error CS1502: The best overloaded method match for
`EeekSoft.Asynchronous.AsyncExtensions.Run(System.Collections.Generic.IEnumerator<EeekSoft.Asynchronous.IAsync>,
System.Action)' has some invalid arguments
    ./Async.cs(189,30): (Location of the symbol related to previous error)
    ./Async.cs(143,29): error CS1503: Argument 2: Cannot convert type `lambda
expression' to `System.Action'
    Compilation failed: 2 error(s), 0 warnings
    $


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