<?xml version="1.0" encoding="us-ascii"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS0118</ErrorName>
  <Examples>
    <string>// cs0118-2.cs: `A.B' is a `namespace' but a `type' was expected
// Line: 9
// Compiler options: -r:CS0118-2-lib.dll

using A.B.C;

namespace A.D {
	class Test {
		static public void Main () 
		{
			B c = new B ();
		}
	}
}
</string>
    <string>// cs0118-3.cs: `Region.Value' is a `field' but a `type' was expected
// Line: 8

public sealed class Region
{
    int Value;
    
    [Value(2)]
    public Region() {}
}
</string>
    <string>// cs0118-4.cs: `x.a.B' is a `property' but a `type' was expected
// Line: 9

using System;

namespace x
{
	class a
	{
		bool B { set {} }
		
		void Test (B b) {}
	}
}</string>
    <string>// cs0118-5.cs: `bar.foo' is a `field' but a `type' was expected
// Line: 6
// This is from bug #70758

struct bar {
        foo foo;
}

</string>
    <string>// CS0118: `MonoTests.System.Data.Test' is a `namespace' but a `type' was expected
// Line: 22
using NUnit.Framework;
using System;

namespace NUnit.Framework
{
	public class Test : Attribute
	{ }
}

namespace MonoTests.System.Data.Test.Utils
{
	public class Y
	{ }
}

namespace MonoTests.System.Data.SqlTypes
{
	public class X
	{
		[Test]
		public void Hello ()
		{
		}

		static void Main ()
		{ }
	}
}
</string>
    <string>// CS0118: `Martin.Test' is a `namespace' but a `type' was expected
// Line: 15
using System;
using Foo;

namespace Foo
{
	public class Test : Attribute
	{
	}
}

namespace Martin.Test
{
	[Test]
	public class X
	{
	}
}
</string>
    <string>// CS0118: `A.Foo(string)' is a `method group' but a `type' was expected
// Line: 15

public class A
{
	public static void Foo (string Setting)
	{
	}
}

class Example
{
	public void Main(string[] args)
	{
		A a = new A.Foo ("test");  
	}
}</string>
    <string>// CS0118: `System' is a `namespace' but a `type' was expected
// Line: 9

public class C
{
	public object Test (object a)
	{
		return (System)(a);
	}
}
</string>
    <string>// cs0118.cs: `X.s' is a `field' but a `type' was expected
// Line: 6
class X {
	string s;

	s MyProperty {
		get {
			return s;
		}
	}
}
</string>
  </Examples>
</ErrorDocumentation>