[Mono-bugs] [Bug 62552][Nor] New - stobj problem with generic program
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 5 Aug 2004 11:22:32 -0400 (EDT)
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 martin@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=62552
--- shadow/62552 2004-08-05 11:22:32.000000000 -0400
+++ shadow/62552.tmp.11341 2004-08-05 11:22:32.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 62552
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: martin@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: stobj problem with generic program
+
+When running the following test case, I get
+** ERROR **: unknown operator: stobj
+
+using System;
+using System.Collections.Generic;
+
+struct Foo<T>
+{
+ public readonly T Data;
+
+ public Foo (T data)
+ {
+ this.Data = data;
+ }
+}
+
+class X
+{
+ static void Main ()
+ {
+ List<Foo<int>> list = new List <Foo<int>> ();
+ foreach (Foo<int> foo in list)
+ ;
+ }
+}