a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
22 lines
354 B
C#
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;
|
|
}
|
|
} |