[Mono-bugs] [Bug 589069] New: Compiler cant compile method with generic type information

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 17 11:29:11 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=589069

http://bugzilla.novell.com/show_bug.cgi?id=589069#c0


           Summary: Compiler cant compile method with generic type
                    information
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: 64bit
        OS/Version: RHEL 5
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: srfcanada at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: Yes


The following class doesnt compile under mono as of the Daily build March 13
2010. I suspect that it was already broken in the mono 2.6 release version too
since it was working in mono 2.4 and as of mono 2.6 we havnt been able to get
mono to compile our projects with numerous problems related to compiling
generic classes.

This is the class is cant compile:
public class TestClass<T>
{
   private T[][] m_data;

   public T[][] Data
   {
      get { return m_data; }
      set { m_data = value; }
   }

   public TestClass(int arrSize)
   {
      Add(ref m_data, new T[arrSize], 1);
   }

   private static void Add(ref T[][] arr, T[] val, int numBlocks)
   {
   }

}

-- 
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