<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0154</ErrorName>
  <Examples>
    <string>// CS0154: The property or indexer `A.this[int]' cannot be used in this context because it lacks the `get' accessor
// Line: 18

public class A
{
	public int this[int i] { set { } }
}

public class B : A
{
	public int this[string i] { get { return 9; } }
}

class Test
{
	public static void Main ()
	{
		int i = new B ()[1];
	}
}

</string>
    <string>// CS0154: The property or indexer `BugReport.MyProperty' cannot be used in this context because it lacks the `get' accessor
// Line: 16

static class BugReport
{
	static float MyProperty {
		set { }
	}

	static void MyExtension (this float val)
	{
	}

	public static void Main ()
	{
		MyProperty.MyExtension ();
	}
}

</string>
    <string>// CS0154: The property or indexer `Test.this[bool]' cannot be used in this context because it lacks the `get' accessor
// Line: 13

class Test
{
	public int this[bool b] { set {} }
}

class C
{
	public static void Main ()
	{
		int i = new Test()[false];
	}
}
</string>
    <string>// CS0154: The property or indexer `A.name' cannot be used in this context because it lacks the `get' accessor
// Line: 21

public class A
{
	public string name 
	{
		set
		{
			name = value;
		}
	}
}

public class B
{
	public static void Main ()
	{
		A a = new A ();
		string b = a.name;
	}
}
			
</string>
    <string>// CS0154: The property or indexer `B.Foo' cannot be used in this context because it lacks the `get' accessor
// Line: 13
// this is bug 55780.

class A {
	public int Foo { get { return 1; } }
}

class B : A {
	public new int Foo { set { } }
	static void Main ()
	{
		System.Console.WriteLine (new B ().Foo);
	}
}</string>
  </Examples>
</ErrorDocumentation>