[mcs] Implements C# 7.2 readonly structs
[mono.git] / mcs / errors / cs8340.cs
1 // CS8340: `S.field': Instance fields in readonly structs must be readonly
2 // Line: 6
3 // Compiler options: -langversion:latest
4
5 readonly struct S
6 {
7         int field;
8 }