blob: 8bea7a434e1fa85c34ddf2997a38d62fd303d1a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// CS0034: Operator `==' is ambiguous on operands of type `A' and `A'
// Line: 36
using System;
struct A
{
public static implicit operator string (A c)
{
return null;
}
public static implicit operator Delegate (A c)
{
return null;
}
}
class Program
{
public static void Main ()
{
bool b = new A () == new A ();
}
}
|