2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0419-2.cs
blob982895b3912f74c10b2a26b4b73248eaa9ccf3c2
1 // CS0419: Ambiguous reference in cref attribute `A.this'. Assuming `Test.A.this[int]' but other overloads including `Test.A.this[string]' have also matched
2 // Line: 7
3 // Compiler options: -doc:dummy.xml -warnaserror
4 using System.Collections;
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
13 static void Main()
17 private class A
19 public object this[int index] {
20 get { return null; }
23 public object this[string index] {
24 get { return null; }
28 private class B
30 public object this[int index] {
31 get { return null; }