2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0120-10.cs
blob39e66305546215dd4a7de01cb6cede7a6355bf48
1 // CS0120: An object reference is required to access non-static member `TestNamespace.TestClass.HelloWorld()'
2 // Line: 31
4 using System;
5 using TestNamespace;
7 namespace TestNamespace
9 public class TestClass
11 public void HelloWorld ()
17 class SuperClass
19 TestClass tc = null;
21 TestClass TestClass
23 get { return tc; }
27 class SubClass : SuperClass
29 public SubClass ()
31 TestClass.HelloWorld ();
35 class App
37 public static void Main ()
39 SubClass sc = new SubClass ();