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

29 lines
459 B
C#

// cs0668.cs: Two indexers have different names; the IndexerName attribute must be used with the same name on every indexer within a type
// Line:
using System.Runtime.CompilerServices;
class A {
[IndexerName ("Blah")]
int this [int a] {
get { return 1; }
}
[IndexerName ("Foo")]
int this [string b] {
get { return 2; }
}
public static int Main ()
{
int a = 5;
if (!(a is object))
return 3;
return 0;
}
}