2009-07-20 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0646.cs
blob31b4d2acfc494813ff645465441c37a66902b811
1 // cs0646.cs: Cannot specify the `DefaultMember' attribute on type containing an indexer
2 // Line : 8
4 using System;
5 using System.Reflection;
7 [DefaultMember ("Item")]
8 public class Foo {
10 string bar;
12 public static void Main ()
14 Console.WriteLine ("foo");
17 string this [int idx] {
18 get {
19 return "foo";
21 set {
22 bar = value;