a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
47 lines
653 B
C#
47 lines
653 B
C#
using System;
|
|
|
|
public class Identifier
|
|
{
|
|
public Identifier () { }
|
|
|
|
public static bool operator == (Identifier id1, Identifier id2)
|
|
{
|
|
return true;
|
|
}
|
|
public static bool operator != (Identifier id1, Identifier id2)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public static implicit operator Identifier (string identifier)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public static implicit operator String (Identifier id)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public static implicit operator decimal (Identifier id)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
Identifier a = null;
|
|
string b = "a";
|
|
|
|
if (!(a == b))
|
|
return 1;
|
|
|
|
decimal d = 5;
|
|
if (a == d)
|
|
return 2;
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
|