[Mono-bugs] [Bug 77448][Nor] New - Generics: Error compiling base
generic method invocation.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Feb 2 09:14:44 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 spigaz at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77448
--- shadow/77448 2006-02-02 09:14:44.000000000 -0500
+++ shadow/77448.tmp.20869 2006-02-02 09:14:44.000000000 -0500
@@ -0,0 +1,60 @@
+Bug#: 77448
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: spigaz at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Generics: Error compiling base generic method invocation.
+
+Description of Problem:
+Error compiling generic base method invocation.
+
+Steps to reproduce the problem:
+1. Insert into a file:
+public class B
+{
+ public virtual T Get<T>()
+ {
+ return default(T);
+ }
+}
+public class A : B
+{
+ public override T Get<T>()
+ {
+ T resp = base.Get<T>();
+ System.Console.WriteLine("T: " + T);
+ return resp;
+ }
+ public static void Main(String[] args)
+ {
+ new A().Get<int>();
+ }
+}
+
+2. Try to compile using gmcs.
+3.
+
+Actual Results:
+syntax error, got token `OP_GENERICS_LT'
+generics.cs(12,24): error CS1002: Expecting `;'
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results:
+Compilation Sucedded.
+
+How often does this happen?
+Always.
+
+Additional Information:
More information about the mono-bugs
mailing list