summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0019-70.cs
blob: a8a3787b6db76d82c574f05d29271c8d989528d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS0019: Operator `&&' cannot be applied to operands of type `S?' and `S?'
// Line: 20

struct S
{
	public static S operator & (S s, S i)
	{
		return s;
	}
}

class C
{
	public static void Main ()
	{
		S? s = new S ();
		S? s2 = null;

		var res = s && s2;
	}
}