[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0030-17.cs
blobb72b8bf71e528c3dfabcac0781e7d5683431f184
1 // CS0030: Cannot convert type `object' to `S'
2 // Line: 13
3 // Compiler options: -langversion:latest
5 ref struct S
9 class X
11 public static void Foo (object o)
13 var res = (S) o;