[runtime] Synthesize IList and IReadOnlyList for the element type of enum errays...
[mono.git] / mono / tests / bug-81673.cs
1 // App.cs created with MonoDevelop
2 // User: lluis at 15:46 18/05/2007
3 //
4
5 using System;
6
7 namespace Application
8 {
9         public class App
10         {
11                 public static void Test ()
12                 {
13                         MyClass c = new MyClass ();
14                         c.Run ();
15                 }
16
17                 public static int Main ()
18                 {
19                         int numCaught = 0;
20
21                         for (int i = 0; i < 10; ++i) {
22                                 try {
23                                         Test ();
24                                 } catch (Exception ex) {
25                                         ++numCaught;
26                                 }
27                         }
28                         if (numCaught == 10)
29                                 return 0;
30                         return 1;
31                 }
32         }
33         
34         class MyClass: IMyInterface
35         {
36                 public void Run ()
37                 {
38                 }
39         }
40 }