2010-03-12 Jb Evain <jbevain@novell.com>
[mono.git] / mcs / errors / cs0419-2.cs
1 // cs0419-2.cs: Ambiguous reference in cref attribute `A.this'. Assuming `Test.A.this[string]' but other overloads including `Test.A.this[int]' have also matched
2 // Line: 7
3 // Compiler options: -doc:dummy.xml -warnaserror
4 using System.Collections;
5
6 /// <summary>
7 ///   <para><see cref="IDictionary.this[object]" /></para>
8 ///   <para><see cref="A.this" /></para>
9 ///   <para><see cref="B.this" /></para>
10 /// </summary>
11 public class Test
12 {
13   static void Main()
14   {
15   }
16
17   private class A
18   {
19     public object this[int index] {
20       get { return null; }
21     }
22
23     public object this[string index] {
24       get { return null; }
25     }
26   }
27
28   private class B
29   {
30     public object this[int index] {
31       get { return null; }
32     }
33   }
34 }
35