[Mono-bugs] [Bug 78297][Nor] Changed - interface constraints to generics are considered value types

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri May 5 05:34:45 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jan.oravec at 6com.sk.

http://bugzilla.ximian.com/show_bug.cgi?id=78297

--- shadow/78297	2006-05-04 22:08:49.000000000 -0400
+++ shadow/78297.tmp.13130	2006-05-05 05:34:45.000000000 -0400
@@ -2,13 +2,13 @@
 Product: Mono: Compilers
 Version: 1.1
 OS: other
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: rharinath at novell.com                            
 ReportedBy: gregdavisfromnj at hotmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -54,6 +54,25 @@
 compile the attached file with "gmcs -target:library Foobar.cs"
 
 ------- Additional Comments From gregdavisfromnj at hotmail.com  2006-05-04 22:08 -------
 Created an attachment (id=16930)
 test case mentioned in initial description
 
+
+------- Additional Comments From jan.oravec at 6com.sk  2006-05-05 05:34 -------
+this is actually OK
+
+consider this (and note that struct is a value-type)
+
+interface I {}
+
+struct S : I {}
+
+class C<T> where T:I {}
+
+class M
+{
+  public static int Main ()
+  {
+    C<S> c = new C<S> ();
+  }
+}


More information about the mono-bugs mailing list