f3e3aab35a
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
26 lines
289 B
C#
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;
|
|
}
|
|
} |