linux-packaging-mono/mcs/tests/gtest-autoproperty-18.cs
Xamarin Public Jenkins c042cd0c52 Imported Upstream version 4.2.0.179
Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
2015-11-10 15:03:43 +00:00

33 lines
292 B
C#

using System;
public class A
{
public int Type { get; }
public A ()
{
Type = 2;
}
}
public class B
{
static int Type { get; }
static B ()
{
Type = 1;
}
static int Main ()
{
if (Type != 1)
return 1;
var a = new A ();
if (a.Type != 2)
return 2;
return 0;
}
}