Files
mono/mcs/errors/cs0646.cs
T
Marek Safar 0c31213775 error messages review
svn path=/trunk/mcs/; revision=46724
2005-06-29 14:55:08 +00:00

27 lines
356 B
C#

// cs0646.cs: 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;
}
}
}