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