[Mono-bugs] [Bug 449000] New: Cannot make pointer to a generic type that is constrained to be a value type
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 25 20:27:07 EST 2008
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: mono-bugs at lists.ximian.com
ReportedBy: kojoadams at hotmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
adamsk at exodus ~/tmp
$ cat k.cs
public class Klass <T> where T : struct {
public void Method () {
T* xx = null;
}
}
adamsk at exodus ~/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.
More information about the mono-bugs
mailing list