GenericParameter.cs: override Module properly
[mcs.git] / tests / test-525.cs
blobe0655b25609af8c0488130bf99e07bd1c61e5dad
1 using System;
3 class X {
4 ~X ()
6 Console.WriteLine ("DESTRUCTOR!");
9 public static int Test1()
11 try {
12 return 8;
13 } catch (Exception) {}
14 System.Console.WriteLine("Shouldn't get here");
15 return 9;
18 public static void Test2()
20 int[] vars = { 3, 4, 5 };
22 foreach (int a in vars) {
23 try {
24 continue;
25 } catch (Exception) {
26 break;
31 public static void Main() {
32 Test1 ();
33 Test2 ();
35 try {
36 return;
37 } catch (Exception) {}
38 System.Console.WriteLine("Shouldn't get here");
39 return;