[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0219-3.cs
blob15fd2eedc6579610e5cbb2fc0f55a77520c7a3d7
1 // CS0219: The variable `o' is assigned but its value is never used
2 // Line: 10
3 // Compiler options: -warn:3 -warnaserror
5 public class MyClass2
7 static public bool b;
8 static public void Main ()
10 object o;
11 if (b)
12 o = null;