[mcs] Add codegen for null operator on result of awaited instance expression of prope...
[mono.git] / mcs / tests / gtest-237.cs
1 using System;
2
3 class Foo<T>
4 {
5         public int Test (T foo)
6         {
7                 return 1;
8         }
9
10         public int Test (int foo)
11         {
12                 return 2;
13         }
14 }
15
16 class X
17 {
18         public static int Main ()
19         {
20                 Foo<long> foo = new Foo<long> ();
21                 Foo<int> bar = new Foo<int> ();
22                 if (foo.Test (4L) != 1)
23                         return 1;
24                 if (foo.Test (3) != 2)
25                         return 2;
26                 if (bar.Test (3) != 2)
27                         return 3;
28                 return 0;
29         }
30 }