Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2001-12-13 02:20:55 +0300
committerMiguel de Icaza <miguel@gnome.org>2001-12-13 02:20:55 +0300
commit13118210953ca87875e44ceb9ca6353bb505a363 (patch)
treeb64a5664618e48fcb63a853b4d4478075accbeee /mcs/errors/bug2.cs
parent5caa0bd00fda4c3a82afd303b8d5fce1ba131f1d (diff)
Add error cs0121
svn path=/trunk/mcs/; revision=1562
Diffstat (limited to 'mcs/errors/bug2.cs')
-rwxr-xr-xmcs/errors/bug2.cs26
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;
+ }
+}