[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)
[mono-project.git] / mcs / errors / cs0198.cs
blob586d565a18b85ea83d1aaa5b269906fed0f4f82d
1 // CS0198: A static readonly field `X.a' cannot be assigned to (except in a static constructor or a variable initializer)
2 // Line: 8
3 class X {
4 static readonly int a;
6 static void Y ()
8 a = 1;