summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0019-62.cs
blob: b1f7cf9e09193e732e07e2888547774132cee2fa (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 `int' and `S?'
// Line: 15

struct S
{
	public static bool operator !=(int a, S s) { return true; }
	public static bool operator ==(int a, S s) { return false; }
}

public class C
{
	public static void Main ()
	{
		S? s;
		var b = 1 == s;
	}
}