Bug 316930 (MONO71449) - [GMCS] explicit interface implementation + indexers causes syntax error
Summary: [GMCS] explicit interface implementation + indexers causes syntax error
Status: RESOLVED FIXED
Alias: MONO71449
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 14:07 UTC by Forgotten User vxPDddArjq
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 19:04:28 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".