You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
26
mcs/tests/test-null-operator-19.cs
Normal file
26
mcs/tests/test-null-operator-19.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user