30 lines
288 B
C#
Raw Normal View History

using System;
public class Y {
static int count = 0;
public static int C ()
{
count++;
if (count == 2)
throw new Exception ("error");
return 1;
}
}
class X {
int a = Y.C ();
X () : this (1)
{
}
X (int a) {
}
public static void Main ()
{
X x = new X ();
}
}