2002-07-19 Martin Baulig <martin@gnome.org>
[mono.git] / mcs / tests / test-68.cs
1 //
2 // Tests invocation of reference type functions with value type arguments
3 //
4 using System;
5 enum A {
6         Hello
7 }
8
9 class X {
10
11         static int Main ()
12         {
13                 if ("Hello" != A.Hello.ToString ())
14                         return 1;
15
16                 Console.WriteLine ("value is: " + (5.ToString ()));
17                 if (5.ToString () != "5")
18                         return 2;
19                 
20                 return 0;
21         }
22 }
23