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:
authorMarek Safar <marek.safar@gmail.com>2010-08-24 13:17:57 +0400
committerMarek Safar <marek.safar@gmail.com>2010-08-24 13:17:57 +0400
commitf2b4cc935175a855ebc5d7520a322cbe7ab1d16e (patch)
tree48beadb56dd1770d9995ef46d6cf18cf80390e6f /mcs/tests/test-anon-94.cs
parent0c64be5b31f6c570368270340f507dfea492a5cf (diff)
Recreate proxy parameters for imported methods
Diffstat (limited to 'mcs/tests/test-anon-94.cs')
-rw-r--r--mcs/tests/test-anon-94.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/test-anon-94.cs b/mcs/tests/test-anon-94.cs
index 0c1dfa1b863..4406ee895b2 100644
--- a/mcs/tests/test-anon-94.cs
+++ b/mcs/tests/test-anon-94.cs
@@ -1,3 +1,5 @@
+// Compiler options: -r:test-anon-94-lib.dll
+
using System;
class Program
@@ -16,6 +18,15 @@ class Program
a ();
}
}
+
+ public class DerivedLibrary : BaseClassLibrary
+ {
+ public override void Print (int arg)
+ {
+ Action a = () => base.Print (30);
+ a ();
+ }
+ }
public static int Main ()
{
@@ -25,6 +36,12 @@ class Program
if (d.i != 90)
return 1;
+ var d2 = new DerivedLibrary ();
+ d2.Print (0);
+
+ if (d2.i != 30)
+ return 2;
+
return 0;
}
}