Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0458-15.cs
1 // CS0458: The result of the expression is always `null' of type `short?'
2 // Line: 24
3 // Compiler options: -warnaserror -warn:2
4
5 struct S
6 {
7         public static short operator + (S s, S i)
8         {
9                 return 2;
10         }
11
12         public static int? operator + (S? s, int? i)
13         {
14                 return 2;
15         }
16
17 }
18
19 class C
20 {
21         public static void Main ()
22         {
23                 S? s = new S ();
24                 var x = s + (S?)null;
25         }
26 }