[Mono-bugs] [Bug 61055][Min] Changed - error cs0172: cant compute type of conditional expr

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 28 Jul 2004 19:34:42 -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 bmaurer@users.sf.net.

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

--- shadow/61055	2004-07-02 21:54:48.000000000 -0400
+++ shadow/61055.tmp.19563	2004-07-28 19:34:42.000000000 -0400
@@ -36,6 +36,17 @@
 end of the conditional expression is given the type int and requires
 an explicit cast of short.
 
 Can't integer literals be implicitly converted to shorts provided
 their in the appropriate range?
 
+
+------- Additional Comments From bmaurer@users.sf.net  2004-07-28 19:34 -------
+class X {
+	static short[] a = { 0 };
+
+	static void Main ()
+	{
+		bool x = true;
+		bool b =  x ? a [1] : 0;
+	}
+}