summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0633-2.cs
blob: 30acfd9d146737838592e21f5288c711338ae145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS0633: The argument to the `System.Runtime.CompilerServices.IndexerNameAttribute' attribute must be a valid identifier
// Line: 5

public class MonthDays {
   [System.Runtime.CompilerServices.IndexerName ("")]
   public int this [int a] {
      get {
         return 0;
      }
   }

   public static void Main ()
   {
	int i = new MonthDays () [1];
   }
}