Bugzilla – Bug 322267
[GMCS] Implemented interface not visible in grandchild class.
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by rhowell@novell.com 2006-10-02 17:46:18 MST ---- Description of Problem: When trying to foreach on a class whose grandparent implements IEnumerable<T>, the compiler fails with error: "mono-bug.cs(35,13): error CS1579: foreach statement cannot operate on variables of type `Mono.Management.IntList' because it does not contain a definition for `GetEnumerator' or is not accessible" Steps to reproduce the problem: 1. Download attached mono-bug.cs file 2. Compile using gmcs 1.1.17.1 with command "gmcs -out:mono-bug.exe mono-bug.cs -warn:0" 3. Notice the error above is generated. Actual Results: Generated error. Expected Results: Successful build. How often does this happen? Always Additional Information: This works under the MS runtime CLR v2.0.50727.42 ---- Additional Comments From rhowell@novell.com 2006-10-02 17:47:07 MST ---- Created an attachment (id=170588) test case that recreates bug ---- Additional Comments From martin@ximian.com 2007-04-11 14:20:37 MST ---- Fixed in SVN. Imported an attachment (id=170588)