[Mono-bugs] [Bug 599449] New: "cannot be inferred from the usage" when compiling #SNMP
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Apr 23 23:33:31 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=599449
http://bugzilla.novell.com/show_bug.cgi?id=599449#c0
Summary: "cannot be inferred from the usage" when compiling
#SNMP
Classification: Mono
Product: Mono: Compilers
Version: 2.6.x
Platform: 32bit
OS/Version: openSUSE 11.2
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: lextudio at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2
(KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2
Cannot compile #SNMP Change Set 41717 on Mono. Compile on Microsoft .NET is OK.
Sounds like gmcs does not work like csc for a specific LINQ expression.
http://sharpsnmplib.codeplex.com/SourceControl/changeset/changes/41717
/home/rupert/Projects/SharpSnmpLib.sln (default targets) ->
(Build target) ->
/home/rupert/Projects/TestAgent/TestAgent.csproj (default targets) ->
(CoreCompile target) ->
../lib/RollingFileAppender.cs(703,59): error CS0411: The type arguments
for method `System.Linq.Enumerable.Select<TSource,TResult>(this
System.Collections.Generic.IEnumerable<TSource>,
System.Func<TSource,int,TResult>)' cannot be inferred from the usage. Try
specifying the type arguments explicitly
Reproducible: Always
Steps to Reproduce:
1. Check out this change set from CodePlex,
http://sharpsnmplib.codeplex.com/SourceControl/changeset/changes/41717
2. Compile it on Mono 2.6.3/openSUSE using xbuild.
Actual Results:
/home/rupert/Projects/SharpSnmpLib.sln (default targets) ->
(Build target) ->
/home/rupert/Projects/TestAgent/TestAgent.csproj (default targets) ->
(CoreCompile target) ->
../lib/RollingFileAppender.cs(703,59): error CS0411: The type arguments
for method `System.Linq.Enumerable.Select<TSource,TResult>(this
System.Collections.Generic.IEnumerable<TSource>,
System.Func<TSource,int,TResult>)' cannot be inferred from the usage. Try
specifying the type arguments explicitly
Expected Results:
It should be compiled without a problem.
--
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