a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
250 B
C#
30 lines
250 B
C#
//
|
|
// fixed
|
|
//
|
|
class X {
|
|
|
|
static void A (ref int a)
|
|
{
|
|
a++;
|
|
}
|
|
|
|
// Int32&
|
|
static void B (ref int a)
|
|
{
|
|
// Int32&&
|
|
A (ref a);
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
int a = 10;
|
|
|
|
B (ref a);
|
|
|
|
if (a == 11)
|
|
return 0;
|
|
else
|
|
return 1;
|
|
}
|
|
}
|