[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs1547-9.cs
blob274c7c59b7c2377abd0be93de8e700937bf0e451
1 // CS1547: Keyword `void' cannot be used in this context
2 // Line: 11
4 namespace OtherTest
6 public static class Program
8 static void MainD (object p)
10 if (p is String)
11 (void)((string) p).ToString ();