Update the reference assemblies we ship in mono.
[mono-project.git] / mcs / errors / cs0154-4.cs
blob1df9c631106b782ca76149c700bfbc1eb3e716bd
1 // CS0154: The property or indexer `A.this[int]' cannot be used in this context because it lacks the `get' accessor
2 // Line: 18
4 public class A
6 public int this[int i] { set { } }
9 public class B : A
11 public int this[string i] { get { return 9; } }
14 class Test
16 public static void Main ()
18 int i = new B ()[1];