codeowners update
[mono.git] / mcs / tests / test-null-operator-19.cs
1 using System;
2
3 class C
4 {
5         public S Acceleration { get; set;}
6 }
7
8 struct S
9 {
10         public double X;
11 }
12
13 class X
14 {
15         public static int Main ()
16         {
17                 var c = new C();
18
19                 var g = c?.Acceleration.X;
20                 Console.WriteLine (g.GetType ());
21                 if (g.GetType () != typeof(double))
22                         return 1;
23
24                 return 0;
25         }
26 }