Bug 323005 (MONO80314) - [GMCS] Implementing a generic interface cannot find a nested type
Summary: [GMCS] Implementing a generic interface cannot find a nested type
Status: RESOLVED MOVED
Alias: MONO80314
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.2
Hardware: Other Linux
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-19 16:22 UTC by Michał Ziemski
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 20:20:18 UTC


---- Reported by rook@roo.k.pl 2006-12-19 09:22:11 MST ----

GMCS can't compile the following code.
Bails out with:
error CS0426: The nested type `Foo' does not exist in the type `Temp<T>'

using System.Collections.Generic;
using System.Collections;
public class Temp<T> : IEnumerable<Temp<T>.Foo>
{
    public class Foo {}

    public IEnumerator<Temp<T>.Foo> GetEnumerator()
    {
        yield return new Foo();
    }

    IEnumerator IEnumerable.GetEnumerator()
    {
        return GetEnumerator();
    }
}

if I remove the generic parameter, everythoing compiles fine.



---- Additional Comments From martin@ximian.com 2007-03-20 18:52:26 MST ----

Added gtest-319.cs.

*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO77963 ***


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>FC4 mono 1.2.2.1</cf_op_sys_details>
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"