[Mono-bugs] [Bug 688891] New: Generic method invocations from base classes fail to compile within delegates

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 20 14:33:44 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=688891

https://bugzilla.novell.com/show_bug.cgi?id=688891#c0


           Summary: Generic method invocations from base classes fail to
                    compile within delegates
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.10.x
          Platform: x86-64
        OS/Version: RHEL 5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: david.marshall at ansys.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User
           Blocker: ---


Created an attachment (id=425971)
 --> (http://bugzilla.novell.com/attachment.cgi?id=425971)
Simple source example of the failure

Description of Problem:
Invoking a generic method from a base class within a delegate fails to compile.
Invoking the method outside of the delegate compiles fine.


Steps to reproduce the problem:
1. Compile the attached source:

gmcs GenericMethodCompilerFailure.cs -target:library



Actual Results:

GenericMethodCompilerFailure.cs(10,17): error CS0305: Using the generic method
`Test.BaseClass.ClearSelection<T>()' requires `1' type argument(s)
GenericMethodCompilerFailure.cs(5,21): (Location of the symbol related to
previous error)
Compilation failed: 1 error(s), 0 warnings


Expected Results:

Compilation succeeds.

How often does this happen? 

Every Time

Additional Information:

This same source compiles with .Net and an older version of Mono.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list