New test.
authorMartin Baulig <martin@novell.com>
Tue, 25 May 2004 20:18:25 +0000 (20:18 -0000)
committerMartin Baulig <martin@novell.com>
Tue, 25 May 2004 20:18:25 +0000 (20:18 -0000)
svn path=/trunk/mcs/; revision=28079

mcs/errors/cs0176-2.cs [new file with mode: 0644]

diff --git a/mcs/errors/cs0176-2.cs b/mcs/errors/cs0176-2.cs
new file mode 100644 (file)
index 0000000..ec60058
--- /dev/null
@@ -0,0 +1,19 @@
+// CS0176: Static member `Start' cannot be accessed with an instance reference, qualify with a type name instead
+// Line: 10
+using System;
+
+class TestIt 
+{
+        public static void Main() 
+        {
+                MyClass p = new MyClass();
+                p.Start ("hi");
+        }
+}
+
+class MyClass
+{
+        public static void Start (string info) 
+        {
+        }
+}