mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
16 lines
233 B
C#
16 lines
233 B
C#
// cs1648.cs: Members of readonly field `C.s' cannot be modified (except in a constructor or a variable initializer)
|
|
// Line: 13
|
|
|
|
struct S {
|
|
public int x;
|
|
}
|
|
|
|
class C {
|
|
readonly S s;
|
|
|
|
public void Test ()
|
|
{
|
|
s.x = 42;
|
|
}
|
|
}
|