[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0183-2.cs
blob331572a174a28e7d20a598d7fa599171c031fc41
1 // CS0183: The given expression is always of the provided (`object') type
2 // Line: 10
3 // Compiler options: -warnaserror -warn:1
5 class X
7 public void Foo ()
9 int x = 1;
10 if (x is object) {