24 lines
301 B
C#
24 lines
301 B
C#
|
// CS0019: Operator `==' cannot be applied to operands of type `A' and `B'
|
||
|
// Line : 21
|
||
|
|
||
|
enum A
|
||
|
{
|
||
|
A1,
|
||
|
A2
|
||
|
}
|
||
|
|
||
|
enum B
|
||
|
{
|
||
|
B1,
|
||
|
B2
|
||
|
}
|
||
|
|
||
|
class C
|
||
|
{
|
||
|
static void Main ()
|
||
|
{
|
||
|
A a = A.A1;
|
||
|
System.Console.WriteLine (a == B.B1);
|
||
|
}
|
||
|
}
|