Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-924.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 07d7783643141880d092eb483b60ced9b50a71ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;

class MainClass
{
	public static int Main ()
	{
		DataFrame df1 = new DataFrame ();
		DataFrame df2 = new DataFrame ();

		if (df1 != null) 
		{
			return 1;
		}

		return 0;
	}

	public class DataFrame
	{
		public static bool operator ==(DataFrame df1, DataFrame df2)
		{
			return df1 is DataFrame;
		}

		public static bool operator !=(DataFrame df1, DataFrame df2)
		{
			return !(df1 == df2);
		}
	}
}