2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0120-7.cs
blob0c38581f1ec7d703c4244d1409c2fca260888c49
1 // CS0120: An object reference is required to access non-static member `MemRefMonoBug.String'
2 // Line: 11
4 using System;
6 public class MemRefMonoBug {
7 private string String; // this member has the same name as System.String class
8 public static void Main ()
10 new MemRefMonoBug ().String = ""; // this line causes no problem
11 String = ""; // mcs crashes in this line