[Mono-bugs] [Bug 72347][Cri] Changed - mcs compiler throws this exception when compiling

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 9 Feb 2005 17:42:42 -0500 (EST)


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 miguel@ximian.com.

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

--- shadow/72347	2005-02-09 04:52:39.000000000 -0500
+++ shadow/72347.tmp.2837	2005-02-09 17:42:42.000000000 -0500
@@ -171,6 +171,27 @@
 
 
 ------- Additional Comments From dezelin32@fastmail.fm  2005-02-09 04:52 -------
 Created an attachment (id=14141)
 And here's the source code whitch makes mcs.exe throws the exception:
 
+
+------- Additional Comments From miguel@ximian.com  2005-02-09 17:42 -------
+A simpler test case:
+
+class D {
+	public D this [int index] {
+		get { return null; }
+		set { } 
+	}
+}
+
+
+class E {
+	void J (D d, int index)
+	{
+		(D) d [index] = new D ();
+	}
+}
+
+class J { static void Main () {} }
+