[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0451.cs
blobc56634be62dce09c26a446a9ba6417feec22272a
1 // CS0451: The `new()' constraint cannot be used with the `struct' constraint
2 // Line: 6
4 class C
6 public static void Foo<T>() where T : struct, new ()