Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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 ();
}
}