2008-09-29 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0419-2.cs
blob3651a6db67607e2c7d68d4707b66d8debfacecda
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;
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; }