[Mono-bugs] [Bug 79013][Nor] Changed - Decimal and integral nullables causing loop

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 4 16:26:16 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 pedro at sobota.net.

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

--- shadow/79013	2006-08-04 16:24:43.000000000 -0400
+++ shadow/79013.tmp.17928	2006-08-04 16:26:16.000000000 -0400
@@ -21,6 +21,25 @@
 
 Passing a decimal? parameter to a method that accepts long?, int?, short?
 or byte? or their unsigned versions, or passing one of these to a method
 that accepts a decimal? provokes an infinite loop in
 Mono.CSharp.Convert.ImplicitStandardConversionExists, causing a stack
 overflow when compiling.
+
+------- Additional Comments From pedro at sobota.net  2006-08-04 16:26 -------
+using System;
+
+class Global {
+	static void Main() {
+		Console.Write(Test1((decimal?)2));
+		//or
+		Console.Write(Test2((int?)2));
+	}
+	
+	static string Test1(int? value) {
+		return "ok";
+	}
+	
+	static string Test2(decimal? value) {
+		return "ok";
+	}
+}


More information about the mono-bugs mailing list