﻿<?xml version="1.0" encoding="utf-8"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0019</ErrorName>
  <Examples>
    <string>// cs0019-10.cs: Operator `-' cannot be applied to operands of type `A' and `B'
// Line : 20

enum A
{
        A1,
        A2
}

enum B
{
        B1,
        B2
}

class C
{
        static void Main ()
        {
                System.Console.WriteLine (A.A1 - B.B1);
        }
}
</string>
    <string>// cs0019-2.cs: Operator `+' cannot be applied to operands of type `int' and `Test.Zub'
// Line : 11
using System;

class Test {

	enum Zub :byte {
		Foo = 99,
		Bar,
		Baz
	}
	

	static void Main ()
	{
		int v = 1;
		object foo = (v + Zub.Foo);
	}
}
	
</string>
    <string>// cs0019-3.cs: Operator `+' cannot be applied to operands of type `Test.Zub' and `Test.Zub'
// Line : 11
using System;

class Test {

	enum Zub :byte {
		Foo = 99,
		Bar,
		Baz
	}
	

	static void Main ()
	{
		object v = (Zub.Foo + Zub.Foo);
	}
}
	
</string>
    <string>// cs0019-4.cs: Operator `+' cannot be applied to operands of type `Test.Zub' and `Test.Zub'
// Line : 11
using System;

class Test {

	enum Zub :byte {
		Foo = 99,
		Bar,
		Baz
	}
	

	static void Main ()
	{
		Zub a = Zub.Foo, b = Zub.Bar;
		object v = (a + b);
	}
}
	
</string>
    <string>// cs0019.cs: Operator `==' cannot be applied to operands of type `X' and `Y'
// Line : 13

class X {
}

class Y {
}

class T {
	static void Main ()
	{
		X x = new X ();
		Y y = new Y ();

		if (x == y){
		}
	}
}
</string>
    <string>// cs0019.cs: Operator `==' cannot be applied to operands of type `A' and `B'
// Line : 21

enum A
{
        A1,
        A2
}

enum B
{
        B1,
        B2
}

class C
{
        static void Main ()
        {
                A a = A.A1;
                System.Console.WriteLine (a == B.B1);
        }
}
</string>
    <string>// cs0019-7.cs: Operator `+' cannot be applied to operands of type `string' and `float*'
// Line: 12
// Compiler options: -unsafe
using System;

public class Driver {
  public static void Main () {
    float [] floats = new float[1];
    floats[0] = 1.0f;
    unsafe {
      fixed (float *fp = &amp;floats[0]) {
	Console.WriteLine ("foo" + fp);
      }
    }
  }
}
</string>
    <string>// cs0019-8.cs: Operator `-' cannot be applied to operands of type `string' and `ulong'
// Line : 12

using System;

public class C
{
    public static void Main ()
    {
        ulong aa = 10;
        ulong bb = 3;
        Console.WriteLine("bug here --&gt; "+aa-bb);
    }
}
</string>
    <string>// cs0019.cs: Operator `&amp;' cannot be applied to operands of type `System.Reflection.MethodImplAttributes' and `System.Runtime.CompilerServices.MethodImplOptions'
// Line : 13

//
// From bug #59864 
//
using System.Reflection;
using System.Runtime.CompilerServices;

public class Foo {

	public static void Main ()
	{
		MethodImplAttributes methodImplAttributes = 0;
            
                if ((methodImplAttributes &amp; MethodImplOptions.Synchronized) == 0) {
                }
	}
}
</string>
    <string>// cs0019.cs: Operator `+' cannot be applied to operands of type `Foo' and `int'
// Line : 11

public class Foo {

	public static void Main ()
	{
		
		Foo k = new Foo ();

		int i = k + 6;
		
	}
}
</string>
  </Examples>
</ErrorDocumentation>