a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
344 B
C#
24 lines
344 B
C#
// CS0121: The call is ambiguous between the following methods or properties: `A.operator +(A, B)' and `B.operator +(A, B)'
|
|
// Line: 21
|
|
|
|
class A
|
|
{
|
|
public static A operator + (A a, B b)
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class B
|
|
{
|
|
public static A operator + (A a, B b)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
static void Main ()
|
|
{
|
|
object o = new A () + new B ();
|
|
}
|
|
}
|