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

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";
}
}