Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

22 lines
354 B
C#

// CS0177: The out parameter `val' must be assigned to before control leaves the current method
// Line: 12
public class A
{
public bool GetValue (out int val)
{
val = 0;
return true;
}
public void ReallyGetValue (out int val)
{
if (AlwaysReturnTrue () || GetValue (out val)) {
}
}
public bool AlwaysReturnTrue ()
{
return true;
}
}