a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
15 lines
378 B
C#
15 lines
378 B
C#
// 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
|
|
}
|
|
}
|
|
|