[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs1604-2.cs
blob7116ba3dafa8abef5d465afdb8ba88f1d2c1d9f9
1 // CS1604: Cannot assign to `this' because it is read-only
2 // Line: 8
3 // Compiler options: -langversion:latest
5 readonly struct S
7 void Foo ()
9 this = new S ();