* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / tests / test-231.cs
1 class T {
2         static int ret_code = 0;
3     
4         static int Main ()
5         {
6                 try {
7                         T t = null;
8                         t.Foo ();
9                 } catch {
10                         return ret_code;
11                 }
12                 ret_code = 1;
13                 return ret_code;
14         }
15         
16         void Foo () {
17                 if (this == null) {
18                         System.Console.WriteLine ("This isnt anything!?!?");
19                         ret_code = 1;
20                 }
21         }
22 }