[Mono-bugs] [Bug 480139] New: IndexerName override issue
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Feb 26 17:41:52 EST 2009
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: mono-bugs at lists.ximian.com
ReportedBy: msafar at novell.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list