[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0313-2.cs
blob7489c65f72002d9e042c2bf9a502cb6c9b8bb4f5
1 // CS0313: The type `S?' cannot be used as type parameter `T' in the generic type or method `C<I>.Foo<T>(T)'. The nullable type `S?' never satisfies interface constraint `I'
2 // Line: 20
4 struct S : I
8 interface I
12 class C<U>
14 static void Foo<T> (T value) where T : U
18 static void Bar (S? s)
20 C<I>.Foo (s);