for "build" config, import corlib common sources at unix instead (#11989)
[mono-project.git] / mcs / errors / cs0176-6.cs
blob6a79e6c162c4abc30f520fe6dde1dd5b6280e823
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;
5 class A
7 public static int X { get { return 2; } }
10 class T
12 static void Main ()
14 A T = new A ();
15 System.Console.WriteLine (T.X);