Files
mono/mcs/errors/cs1650.cs
T
Marek Safar 0c31213775 error messages review
svn path=/trunk/mcs/; revision=46724
2005-06-29 14:55:08 +00:00

19 lines
309 B
C#

// cs1650.cs: Fields of static readonly field `C.s' cannot be assigned to (except in a static constructor or a variable initializer)
// Line: 14
using System;
struct S {
public int x;
}
class C {
static readonly S s;
public static void Main(String[] args) {
s.x = 42;
Console.WriteLine(s.x);
}
}