Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-195.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 95ee942562e3e6d4e49ef423bd067c4918a6791d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 ();
	}
}