Bugzilla – Bug 323005
[GMCS] Implementing a generic interface cannot find a nested type
Last modified: 2007-09-15 21:24:23 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"