[Mono-dev] gmcs:compiler > "Cannot convert type `lambda expression' to `System.Action'"

Casey Marshall cmarshall at pacificbiosciences.com
Mon Jun 16 19:50:04 EDT 2008


On Mon, 2008-06-16 at 17:38 -0600, M. David Peterson wrote:
> Was about to report this to Novell:Bugzilla but after a quick
> search[1] it seems there may be plenty of related bugs, so thought it
> better to get a quick clarification first.
> 

I filed this bug on this (or a similar) error:

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

I don't know if it's well understood or not, but it's definitely still
an issue, and has been for a while.

Thanks.

> 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
>         $
> 
> Should I go ahead and submit this as a new bug, or, as per link[1] is
> this a well understood issue?
> 
> [1]
> https://bugzilla.novell.com/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&product=Mono%3A+Compilers&content=%22Cannot+convert+type+%60lambda+expression%27+to+%60System.Action%27%22
> 
> -- 
> /M:D
> 
> M. David Peterson
> Co-Founder & Chief Architect, 3rd & Urban, LLC
> Email: m.david at 3rdandUrban.com | m.david at amp.fm
> Mobile: (206) 999-0588
> http://3rdandUrban.com | http://amp.fm |
> http://www.oreillynet.com/pub/au/2354 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list


More information about the Mono-devel-list mailing list