[Mono-bugs] [Bug 77574][Nor] New - mcs fails to compile code which
passes through csc.exe
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Feb 16 09:14:01 EST 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 jaak at jkowalski.net.
http://bugzilla.ximian.com/show_bug.cgi?id=77574
--- shadow/77574 2006-02-16 09:14:01.000000000 -0500
+++ shadow/77574.tmp.6117 2006-02-16 09:14:01.000000000 -0500
@@ -0,0 +1,76 @@
+Bug#: 77574
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: jaak at jkowalski.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs fails to compile code which passes through csc.exe
+
+I'm trying to compile Sooda (http://www.sooda.org) using mcs. It fails,
+while csc.exe on Windows compiles it just fine.
+
+It fails with the following error:
+
+ [csc] Compiling 208 files to
+'/home/jaak/work/Sooda/build/mono-1.0-debug/bin/Sooda.dll'.
+ [csc]
+/home/jaak/work/Sooda/src/Sooda/QL/TypedWrappers/SoqlBooleanWrapperExpression.cs(76,32):
+warning CS0108:
+`Sooda.QL.TypedWrappers.SoqlBooleanWrapperExpression.implicit operator
+Sooda.QL.TypedWrappers.SoqlBooleanWrapperExpression(bool)' hides inherited
+member `Sooda.QL.SoqlBooleanExpression.mplicit'. Use the new keyword if
+hiding was intended
+ [csc]
+/home/jaak/work/Sooda/src/Sooda/QL/SoqlBooleanExpression.cs(61,32)::
+`Sooda.QL.SoqlBooleanExpression.implicit operator
+Sooda.QL.SoqlBooleanExpression(bool)', name of symbol related to previous
+warning
+ [csc]
+/home/jaak/work/Sooda/src/Sooda/QL/TypedWrappers/SoqlBooleanWrapperExpression.cs(76,32):
+error CS0115: `Sooda.QL.TypedWrappers.SoqlBooleanWrapperExpression.implicit
+operator Sooda.QL.TypedWrappers.SoqlBooleanWrapperExpression(bool)': no
+suitable method found to override
+ [csc] Compilation failed: 1 error(s), 1 warnings
+
+I've reduced the problem to the following source file:
+
+------------------
+using System;
+
+namespace BugReport {
+ public class A {
+ public static implicit operator A(bool v) {
+ throw new NotImplementedException();
+ }
+ }
+
+ public class B : A {
+ public static implicit operator B(bool v) {
+ throw new NotImplementedException();
+ }
+ }
+}
+------------------
+
+Compiling it with mcs gives the error:
+
+test.cs(11,32): warning CS0108: `BugReport.B.implicit operator
+BugReport.B(bool)' hides inherited member `BugReport.A.mplicit'. Use the
+new keyword if hiding was intended
+test.cs(5,32):: `BugReport.A.implicit operator BugReport.A(bool)', name of
+symbol related to previous warning
+test.cs(11,32): error CS0115: `BugReport.B.implicit operator
+BugReport.B(bool)': no suitable method found to override
+Compilation failed: 1 error(s), 1 warnings
+
+On csc.exe it compiles just fine.
More information about the mono-bugs
mailing list