[Mono-bugs] [Bug 34795][Nor] New - mcs doesn't report CS0035 error
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
30 Nov 2002 20:08:12 -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 bugbuddy-import@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=34795
--- shadow/34795 Sat Nov 30 15:08:12 2002
+++ shadow/34795.tmp.17303 Sat Nov 30 15:08:12 2002
@@ -0,0 +1,70 @@
+Bug#: 34795
+Product: Mono/MCS
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details:
+Status: UNCONFIRMED
+Resolution:
+Severity: Unknown
+Priority: Normal
+Component: Misc
+AssignedTo: triage@ximian.com
+ReportedBy: jaimemonkey@yahoo.es
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs doesn't report CS0035 error
+
+Package: Mono/MCS
+Priority: Normal
+Version: CVS Nov29-2002
+Synopsis: mcs doesn't report CS0035 error
+Bugzilla-Product: Mono/MCS
+Bugzilla-Component: Misc
+
+Description:
+Description of Problem:
+
+mcs fails detecting errors of type CS0035
+
+Steps to reproduce the problem:
+
+This is the test I commited to mcs/errors/cs0035.cs
+
+// cs0035.cs: Ambiguous 'operator' on an operand of type 'foo'
+// Line: 23
+
+using System;
+
+class ErrorCS0035 {
+ int i;
+ public ErrorCS0035 (int x) {
+ i = x;
+ }
+
+ public static implicit operator long (ErrorCS0035 x) {
+ return (long) x.i;
+ }
+
+ public static implicit operator ulong (ErrorCS0035 x) {
+ return (ulong) x.i;
+ }
+
+ public static void Main () {
+ object o;
+ ErrorCS0035 error = new ErrorCS0035 (10);
+ Console.WriteLine ("o = -i = {0}", - error);
+
+ }
+}
+
+
+
+
+
+
+Setting qa contact to the default for this product.
+ This bug either had no qa contact or an invalid one.
+
+