[Mono-bugs] [Bug 34163][Blo] New - implicit cast from int to long/ulong considered ambiguous
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
17 Nov 2002 11:33:10 -0000
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 lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=34163
--- shadow/34163 Sun Nov 17 06:33:10 2002
+++ shadow/34163.tmp.13353 Sun Nov 17 06:33:10 2002
@@ -0,0 +1,32 @@
+Bug#: 34163
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lupus@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: implicit cast from int to long/ulong considered ambiguous
+
+This is a build blocker in the corlib build (BigInt.cs in the crypto stuff).
+class B {
+ int val;
+ public B (long a) {
+ val = (int)a;
+ }
+ public B (ulong a) {
+ val = (int)a;
+ }
+ static void Main () {
+ B b = new B (1);
+ }
+}
+The program compiles fine with csc, but not with mcs.