blob: d94fadd0313616da8393b9bea40475329947b636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// CS0019: Operator `==' cannot be applied to operands of type `S?' and `int'
// Line: 15
struct S
{
public static bool operator != (S s, int a) { return true; }
public static bool operator == (S s, int a) { return false; }
}
public class C
{
public static void Main ()
{
S? s;
var b = s == 1;
}
}
|