Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0120-7.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f168aaa3ea2d02a461fd3f7a4c26d31d90c58eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// cs0120-7.cs: `MemRefMonoBug.String': An object reference is required for the nonstatic field, method or property
// 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
	}
}