Merge pull request #3591 from directhex/mono_libdir_fallback
[mono.git] / mcs / errors / cs0176-6.cs
1 // CS0176: Static member `A.X' cannot be accessed with an instance reference, qualify it with a type name instead
2 // Line: 12
3 using System;
4
5 class A
6 {
7         public static int X { get { return 2; } }
8 }
9
10 class T
11         {
12         static void Main ()
13         {
14                 A T = new A ();
15                 System.Console.WriteLine (T.X);
16         }
17 }