a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
350 B
C#
30 lines
350 B
C#
class C : B
|
|
{
|
|
public static bool operator + (C a, short b)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static bool operator + (C a, long b)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
class B
|
|
{
|
|
public static bool operator + (B b, string s)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public class Test
|
|
{
|
|
public static void Main ()
|
|
{
|
|
var c = new C ();
|
|
var a1 = c + "a";
|
|
var a2 = c + "a";
|
|
}
|
|
} |