mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
19 lines
309 B
C#
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);
|
|
}
|
|
}
|
|
|