diff options
author | Miguel de Icaza <miguel@gnome.org> | 2001-12-13 02:20:55 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2001-12-13 02:20:55 +0300 |
commit | 13118210953ca87875e44ceb9ca6353bb505a363 (patch) | |
tree | b64a5664618e48fcb63a853b4d4478075accbeee /mcs/errors/bug2.cs | |
parent | 5caa0bd00fda4c3a82afd303b8d5fce1ba131f1d (diff) |
Add error cs0121
svn path=/trunk/mcs/; revision=1562
Diffstat (limited to 'mcs/errors/bug2.cs')
-rwxr-xr-x | mcs/errors/bug2.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/errors/bug2.cs b/mcs/errors/bug2.cs new file mode 100755 index 00000000000..b8d976216c9 --- /dev/null +++ b/mcs/errors/bug2.cs @@ -0,0 +1,26 @@ +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; + } +} |