[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0177-14.cs
blob103bf7a60f2d06f149a4f0e300ba2034e51dcaec
1 // CS0177: The out parameter `val' must be assigned to before control leaves the current method
2 // Line: 12
4 public class A
6 public bool GetValue (out int val)
8 val = 0;
9 return true;
12 public void ReallyGetValue (out int val)
14 if (AlwaysReturnTrue () || GetValue (out val)) {
18 public bool AlwaysReturnTrue ()
20 return true;