Merge pull request #1821 from iainx/replace-getline
[mono-project.git] / mcs / errors / cs0191.cs
blobb40f01ecaa4d7a809fa176b7b827613f29e2e3d4
1 // CS0191: A readonly field `X.a' cannot be assigned to (except in a constructor or a variable initializer)
2 // Line: 8
3 class X {
4 readonly int a;
6 void Y ()
8 a = 1;