https://bugzilla.novell.com/show_bug.cgi?id=404227
Summary: error CS0030 in gmcs but no error in VS2005
Product: Mono: Compilers
Version: 1.9.0
Platform: i686
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: Integration Test
The following simple piece of code compiles fine in MS Visual Studio 2005. With
gmcs versions 1.2.6 and 1.9 compilation fails with the message:
"error CS0030: Cannot convert type `TestIssue.Base[]' to
`System.Collections.Generic.IEnumerable<TestIssue.Derived>'"
using System;
using System.Collections.Generic;
using System.Text;
namespace TestIssue
{
class Base
{}
class Derived : Base{}
class Program
{
static void Main(string[] args)
{
IEnumerable<Derived> e1 = (IEnumerable<Derived>) (new Base[]{});
}
}
}
--
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs