Bug 320231 (MONO77448) - [GMCS] Error compiling base generic method invocation.
Summary: [GMCS] Error compiling base generic method invocation.
Status: RESOLVED FIXED
Alias: MONO77448
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-02 16:14 UTC by José Faria
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:47:05 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".