summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0176-2.cs
blob: 9ee7eb02621d816a1145882ae83e34f287b32f2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS0176: Static member `MyClass.Start(string)' cannot be accessed with an instance reference, qualify it 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) 
        {
        }
}