[mcs] Add codegen for null operator on result of awaited instance expression of prope...
[mono.git] / mcs / tests / gtest-etree-04.cs
index 94a2f29f94c3facb31ef346cf4d9338dfffa16bb..d40bc9636d952ab34e08658c794aee43128d93b8 100644 (file)
@@ -22,6 +22,11 @@ struct Foo
        {
                throw new ApplicationException ();
        }
+       
+       public static Foo operator + (Foo d1, Foo d2)
+       {
+               throw new ApplicationException ();
+       }
 }
 
 class C
@@ -45,6 +50,10 @@ class C
                if (!e.Compile ().Invoke ())
                        return 4;
                
+               Expression<Func<Foo?>> e2 = () => f + null;
+               if (e2.Compile ().Invoke () != null)
+                       return 5;
+
                Console.WriteLine ("OK");
                return 0;
        }