https://bugzilla.novell.com/show_bug.cgi?id=449000


           Summary: Cannot make pointer to a generic type that is
                    constrained to be a value type
           Product: Mono: Compilers
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


[EMAIL PROTECTED] ~/tmp
$ cat k.cs
public class Klass <T> where T : struct {
        public void Method () {
                T* xx = null;
        }
}


[EMAIL PROTECTED] ~/tmp
$ gmcs k.cs
k.cs(3,17): error CS0208: Cannot take the address of, get the size of, or
declare a pointer to a managed type `T'
k.cs(1,14): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings


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

Reply via email to