Bugzilla – Bug 316930
[GMCS] explicit interface implementation + indexers causes syntax error
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by vargaz@gmail.com 2005-01-19 07:07:40 MST ---- When given the following code: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< using System; using System.Collections.Generic; interface IFoo <T> { T this [int index] { get; set; } } public class FooCollection <T> : IFoo <T> { T IFoo<T>.this [int index] { get { return default(T); } set { } } } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< gmcs aborts with readonly.cs(13) error CS1003: Syntax error, an indexer can't have type arguments Compilation failed: 1 error(s), 0 warnings while csc compiles it just fine. ---- Additional Comments From martin@ximian.com 2005-01-26 05:31:38 MST ---- Fixed in SVN. Unknown operating system unknown. Setting to default OS "Other".