Bugzilla – Bug 320231
[GMCS] Error compiling base generic method invocation.
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by spigaz@gmail.com 2006-02-02 09:14:43 MST ---- 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: ---- Additional Comments From martin@ximian.com 2006-02-07 21:55:00 MST ---- Fixed in SVN. Unknown operating system unknown. Setting to default OS "Other".