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

gtest-229.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2006e12c854126a4fbb6268c3800a8208afbc35a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections;
using System.Collections.Generic;

public class B : IComparable<B> {
	public int CompareTo (B b)
	{
		return 0;
	}
}

public class Tester
{
	static int Main ()
	{
		B b = new B ();

		// This should be false
		if (b is IComparable<object>)
			return 1;
		return 0;
	}
}