[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / errors / cs0668.cs
blob9ab3e251a6ca186ddb4af5be7c5a808ea843a862
1 // CS0668: Two indexers have different names; the IndexerName attribute must be used with the same name on every indexer within a type
2 // Line:
4 using System.Runtime.CompilerServices;
5 class A {
6 [IndexerName ("Blah")]
7 int this [int a] {
8 get { return 1; }
11 [IndexerName ("Foo")]
12 int this [string b] {
13 get { return 2; }
16 public static int Main ()
18 int a = 5;
20 if (!(a is object))
21 return 3;
23 return 0;