2005-06-05 Peter Bartok <pbartok@novell.com>
[mono.git] / mcs / tests / test-231.cs
1 class T {
2         static void Main ()
3         {
4                 try {
5                         T t = null;
6                         t.Foo ();
7                 } catch {
8                         System.Environment.Exit (0);
9                 }
10                 
11                 System.Environment.Exit (1);
12         }
13         
14         void Foo () {
15                 if (this == null) {
16                         System.Console.WriteLine ("This isnt anything!?!?");
17                         System.Environment.Exit (1);
18                 }
19         }
20 }