blob: 1eb0211fdded5ae7a48c5a5f613ae48786660be6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// 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;
}
}
|