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

gtest-500.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f44834f18070a5aea981ecaec81305253a540b5e (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
using System;

interface I
{
}

struct S : I
{
}

class Program
{
	public static int Main ()
	{
		int? a = 5;
		int? b = 5;
		IComparable ic_a = a;
		IComparable ic_b = b;
		if (ic_a.CompareTo (ic_b) != 0)
			return 1;

		S? s = new S ();
		I iface = s;

		return 0;
	}
}