[mcs] Add codegen for null operator on result of awaited instance expression of prope...
[mono.git] / mcs / tests / gtest-361.cs
1 public class Thing
2 {
3     public delegate void Handler ();
4     
5     static void Foo ()
6     {
7     }
8
9     public static int Main ()
10     {
11         Method (delegate { }, 
12             "Hello", "How", "Are", "You"); // compiler explodes
13         Method (delegate { });             // compiler explodes
14
15         Method (null, null);               // ok
16         Method (null);                     // ok
17         Method (Foo, "Hi");               // ok
18         return 0;
19     }
20
21     public static void Method (Handler handler, params string [] args)
22     {
23     }
24 }
25