https://bugzilla.novell.com/show_bug.cgi?id=480139
Summary: IndexerName override issue
Classification: Mono
Product: Mono: Compilers
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
interface IFoo {
[IndexerName ("Bar")]
int this [int i] { get; }
}
class Foo : IFoo {
public int this [int i] { get { return 42; } }
}
abstract class Bar {
[IndexerName ("Baz")]
public abstract int this [int i] { get; }
}
class Babar : Bar {
public override int this [int i] { get { return 42; } }
}
class Test {
static int Main ()
{
if (typeof (Foo).GetProperty ("Bar") == null)
return 1;
if (typeof (Babar).GetProperty ("Baz") == null)
return 2;
return 0;
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs