a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
27 lines
353 B
C#
27 lines
353 B
C#
// CS0646: Cannot specify the `DefaultMember' attribute on type containing an indexer
|
|
// Line : 8
|
|
|
|
using System;
|
|
using System.Reflection;
|
|
|
|
[DefaultMember ("Item")]
|
|
public class Foo {
|
|
|
|
string bar;
|
|
|
|
public static void Main ()
|
|
{
|
|
Console.WriteLine ("foo");
|
|
}
|
|
|
|
string this [int idx] {
|
|
get {
|
|
return "foo";
|
|
}
|
|
set {
|
|
bar = value;
|
|
}
|
|
}
|
|
}
|
|
|