[Mono-bugs] [Bug 81277][Nor] Changed - Autoboxing an array of value types

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Apr 11 18:03:12 EDT 2007

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 at ximian.com.


--- shadow/81277	2007-04-11 14:52:35.000000000 -0400
+++ shadow/81277.tmp.10453	2007-04-11 18:03:12.000000000 -0400
@@ -100,6 +100,20 @@
 Trying to construct an A...
 How often does this happen? 
+------- Additional Comments From martin at ximian.com  2007-04-11 18:03 -------
+If I understand this correctly, MyStruct[] -> IList<IList<int>> is not
+allowed by ECMA.
+The reason is that in 13.1.4, the spec requires an implicit reference
+conversion from S to T (ie. from MyStruct to IList<int>).  According
+to 13.1.4, however, there is no such conversion.
+Note that there is an implicit boxing conversion from MyStruct to
+IList<int>, but if I understand this correctly this doesn't qualify there.
+Note also that when making MyStruct a class type instead of a struct,
+the test case compiles with csc.

More information about the mono-bugs mailing list