[mcs] Consider method candidates with misplaced named arguments not applicable. Fixes...
[mono.git] / mcs / errors / cs0019-70.cs
1 // CS0019: Operator `&&' cannot be applied to operands of type `S?' and `S?'
2 // Line: 20
3
4 struct S
5 {
6         public static S operator & (S s, S i)
7         {
8                 return s;
9         }
10 }
11
12 class C
13 {
14         public static void Main ()
15         {
16                 S? s = new S ();
17                 S? s2 = null;
18
19                 var res = s && s2;
20         }
21 }