* test-81.cs : Add.
* makefile : Update accordingly as this test passes.
svn path=/trunk/mcs/; revision=2932
+2002-03-05 Ravi Pratap <ravi@ximian.com>
+
+ * test-81.cs : Add.
+
+ * makefile : Update accordingly as this test passes.
+
2002-02-20 Miguel de Icaza <miguel@ximian.com>
* unsafe-1.cs: Extend test.
test-41 test-42 test-43 test-44 test-45 test-46 test-47 test-48 test-49 test-50 \
test-51 test-52 test-53 test-54 test-55 test-56 test-57 test-59 \
test-61 test-62 test-63 test-64 test-65 test-66 test-67 test-68 test-69 test-70 \
- test-71 test-72 test-73 test-74 test-75 test-77 test-78 test-79 test-80
+ test-71 test-72 test-73 test-74 test-75 test-77 test-78 test-79 test-80 \
+ test-81
UNSAFE_SOURCES = \
unsafe-1 unsafe-2
--- /dev/null
+//
+// Tests if we can invoke static members using the short
+// names
+//
+using System;
+
+namespace N1
+{
+ public class A
+ {
+ int x;
+ string s;
+
+ void Bar ()
+ {
+ x = int.Parse ("0");
+ s = string.Format("{0}", x);
+ }
+
+ public static int Main ()
+ {
+ A a = new A ();
+
+ a.Bar ();
+
+ if (a.x != 0)
+ return 1;
+
+ if (a.s != "0")
+ return 1;
+
+ Console.WriteLine ("Bar set s to " + a.s);
+
+ return 0;
+ }
+ }
+}