2010-03-12 Jb Evain <jbevain@novell.com>
[mono.git] / mcs / errors / cs0117-2.cs
1 // cs0117-2.cs: `A' does not contain a definition for `Foo'
2 // Line: 15
3 using System;
4 using System.Runtime.CompilerServices;
5
6 class A
7 {
8         [IndexerName ("Foo")]
9         public int this [int index] {
10                 get { return index; }
11         }
12
13         static int Test (A a)
14         {
15                 return a.Foo;
16         }
17
18         public static void Main ()
19         {
20                 Test (new A ());
21         }
22 }