Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

45 lines
364 B
C#

interface IA
{
}
interface IB
{
}
class A
{
}
class B
{
}
class X : IA
{
}
class Program
{
public static void Main ()
{
IA a = null;
IB b = null;
bool r = a == b;
A aa = null;
B bb = null;
// Only this fails
//r = aa == bb;
X x = null;
r = x == a;
r = x == b;
object o = null;
r = o == x;
r = o == a;
r = o == aa;
}
}