* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git] / tests / test-81.cs
blob005708bfc86b5a4fda4038efa601fcb6930e29dc
1 //
2 // Tests if we can invoke static members using the short
3 // names
4 //
5 using System;
7 namespace N1
8 {
9 public class A
11 int x;
12 string s;
14 void Bar ()
16 x = int.Parse ("0");
17 s = string.Format("{0}", x);
20 public static int Main ()
22 A a = new A ();
24 a.Bar ();
26 if (a.x != 0)
27 return 1;
29 if (a.s != "0")
30 return 1;
32 Console.WriteLine ("Bar set s to " + a.s);
34 return 0;