6992685b86
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
33 lines
292 B
C#
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;
|
|
}
|
|
} |