diff options
Diffstat (limited to 'mcs/errors/bug2.cs')
-rwxr-xr-x | mcs/errors/bug2.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mcs/errors/bug2.cs b/mcs/errors/bug2.cs new file mode 100755 index 00000000000..61f6eea2bce --- /dev/null +++ b/mcs/errors/bug2.cs @@ -0,0 +1,29 @@ +// +// fixed +// +class X { + + static void A (ref int a) + { + a++; + } + + // Int32& + static void B (ref int a) + { + // Int32&& + A (ref a); + } + + static int Main () + { + int a = 10; + + B (ref a); + + if (a == 11) + return 0; + else + return 1; + } +} |