linux-packaging-mono/mcs/tests/test-null-operator-19.cs
Xamarin Public Jenkins f3e3aab35a Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
2016-02-22 11:00:01 -05:00

26 lines
289 B
C#

using System;
class C
{
public S Acceleration { get; set;}
}
struct S
{
public double X;
}
class X
{
public static int Main ()
{
var c = new C();
var g = c?.Acceleration.X;
Console.WriteLine (g.GetType ());
if (g.GetType () != typeof(double))
return 1;
return 0;
}
}