[Mono-bugs] [Bug 404227] New: error CS0030 in gmcs but no error in VS2005

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 26 13:21:59 EDT 2008


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: mono-bugs at lists.ximian.com
        ReportedBy: iam.jss at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list