a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
288 B
C#
30 lines
288 B
C#
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 ();
|
|
}
|
|
}
|