[Mono-bugs] [Bug 82494][Min] New - :: operator is not parsed correctly when used in generics inheritance
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Aug 20 06:47:36 EDT 2007
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 jan.oravec at 6com.sk.
http://bugzilla.ximian.com/show_bug.cgi?id=82494
--- shadow/82494 2007-08-20 06:47:36.000000000 -0400
+++ shadow/82494.tmp.22825 2007-08-20 06:47:36.000000000 -0400
@@ -0,0 +1,52 @@
+Bug#: 82494
+Product: Mono: Compilers
+Version: 1.2
+OS:
+OS Details: mono-1.2.4 on amd64
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: jan.oravec at 6com.sk
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: :: operator is not parsed correctly when used in generics inheritance
+
+The following code compiles correctly:
+
+using x = System;
+
+abstract class Foo<T> : x.IEquatable<T>
+{
+ public abstract bool Equals (T x);
+}
+
+
+When replacing '.' with '::':
+
+using x = System;
+
+abstract class Foo<T> : x::IEquatable<T>
+{
+ public abstract bool Equals (T x);
+}
+
+The compilation fails:
+
+qqqq.cs(3,40): error CS8025: Parsing error
+Compilation failed: 1 error(s), 0 warnings
+
+When interface is not generics, e.g.:
+
+using x = System;
+
+abstract class Foo<T> : x::IDisposable
+{
+ public abstract void Dispose ();
+}
+
+Everything compiles OK.
More information about the mono-bugs
mailing list