[Mono-dev] gmcs:compiler > "Cannot convert type `lambda expression' to `System.Action'"
M. David Peterson
xmlhacker at gmail.com
Mon Jun 16 19:38:56 EDT 2008
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080616/d5ade09b/attachment.html
More information about the Mono-devel-list
mailing list