[Mono-bugs] [Bug 657797] New: Generic type constraint member lookup fails with nested constraints

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 6 15:44:52 EST 2010



           Summary: Generic type constraint member lookup fails with
                    nested constraints
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.8.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: tom.philpot at logos.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=403639)
 --> (http://bugzilla.novell.com/attachment.cgi?id=403639)
Test program which illustrates the compile error.

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv: Gecko/20100914 Firefox/3.6.10

Using the attached code a CS1061 is generated when running gmcs or dmcs. 

I'm using the 2.8.1 branch from Git.

gmcs Main.cs
Main.cs(19,27): error CS1061: Type `W' does not contain a definition for
`Start' and no extension method `Start' of type `W' could be found (are you
missing a using directive or an assembly reference?)

It seems that the MemberCache.FindMembers is only looking at the BaseType,
instead of also inspecting the TypeArguments to determine if a member exists.

Reproducible: Always

Steps to Reproduce:
1. Compile the attached code.

Actual Results:  
Compile Error

Expected Results:  
Should compile. This code compiles on Windows using .NET 3.5 and compiled with
Mono 2.6

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