[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0266-30.cs
blob62cc53f51b70defb4913fc957dc82217191843ba
1 // CS0266: Cannot implicitly convert type `Foo<int>.FooEvent' to `Foo<string>.FooEvent'. An explicit conversion exists (are you missing a cast?)
2 // Line: 12
4 class Foo<T> {
5 public event FooEvent Event;
6 public delegate T FooEvent();
9 class CompilerCrashTest {
10 static void Main() {
11 Foo<string> foo = new Foo<string>();
12 foo.Event += new Foo<int>.FooEvent (() => 0);