a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
18 lines
309 B
C#
18 lines
309 B
C#
// 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;
|
|
}
|
|
}
|