[mcs] Add codegen for null operator on result of awaited instance expression of prope...
[mono.git] / mcs / tests / gtest-optional-38.cs
1 class C
2 {
3 }
4
5 class Foo 
6 {
7                 public int SetValue (string name, string value, string defaultValue = null, bool preserveExistingCase = false)
8                 {
9                         return 1;
10                 }
11
12                 public int SetValue (string name, C value, C defaultValue = default(C), bool relativeToProject = true, C relativeToPath = default(C), bool mergeToMainGroup = false, string condition = null)
13                 {
14                         return 2;
15                 }
16
17                 public int SetValue (string name, object value, C defaultValue = null)
18                 {
19                         return 3;
20                 }
21 }
22
23 class Test 
24 {
25         static int Main() 
26         {
27                 var f = new Foo ();
28                 C b = null;
29                 C c = null;
30
31                 if (f.SetValue ("a", b, c) != 2)
32                         return 1;
33
34                 return 0;
35         }
36 }