summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0120-7.cs
blob: 0c38581f1ec7d703c4244d1409c2fca260888c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0120: An object reference is required to access non-static member `MemRefMonoBug.String'
// Line: 11

using System;

public class MemRefMonoBug {
	private string String;	// this member has the same name as System.String class
	public static void Main ()
	{
		new MemRefMonoBug ().String = "";	// this line causes no problem
		String = "";	// mcs crashes in this line
	}
}