[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0121-6.cs
blob743edf8755cb5a53b535f57149ddb57eb47f32ae
1 // CS0121: The call is ambiguous between the following methods or properties: `C.Foo(object, string)' and `C.Foo(int, object)'
2 // Line: 13
4 class C
6 delegate void D (int x, string s);
8 static void Foo (object o, string s) { }
9 static void Foo (int x, object o) { }
11 static void Main ()
13 D d = Foo;