[Mono-bugs] [Bug 686290] New: mcs fails to infer correct return type
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Apr 8 11:59:03 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=686290
https://bugzilla.novell.com/show_bug.cgi?id=686290#c0
Summary: mcs fails to infer correct return type
Classification: Mono
Product: Mono: Compilers
Version: SVN
Platform: x86-64
OS/Version: openSUSE 11.4
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: msafar at novell.com
ReportedBy: st at quanttec.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Steps to reproduce the problem:
Compile the following C# code with mcs, referencing FSharp.Core.dll (shipped
with the Mono 2.10 packages)
--
using System;
using Microsoft.FSharp.Core;
// needs reference to FSharp.Core.Dll
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
OptimizedClosures.FSharpFunc<int, int, int> t =
OptimizedClosures.FSharpFunc<int, int, int>.Adapt(null);
// Error CS0029: Cannot implicitly convert type
`Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc<T1,T2,TResult>' to
`Microsoft.FSharp.Core.OptimizedClosures.FSharpFunc<int,int,int>' (CS0029)
(Test2)
}
}
}
--
Actual Results:
Compiler error (see code comment)
Expected Results:
No compiler error (as on .NET)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list