[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / test-null-operator-19.cs
blob16a536e9a3a7a0e70dfc475e91ed4ea5a00c6f7e
1 using System;
3 class C
5 public S Acceleration { get; set;}
8 struct S
10 public double X;
13 class X
15 public static int Main ()
17 var c = new C();
19 var g = c?.Acceleration.X;
20 Console.WriteLine (g.GetType ());
21 if (g.GetType () != typeof(double))
22 return 1;
24 return 0;