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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to