projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac10caf
)
New test.
author
Marek Safar
<marek.safar@gmail.com>
Mon, 5 Jul 2010 17:29:06 +0000
(17:29 -0000)
committer
Marek Safar
<marek.safar@gmail.com>
Mon, 5 Jul 2010 17:29:06 +0000
(17:29 -0000)
svn path=/trunk/mcs/; revision=159912
mcs/tests/test-anon-94.cs
[new file with mode: 0644]
patch
|
blob
diff --git a/mcs/tests/test-anon-94.cs
b/mcs/tests/test-anon-94.cs
new file mode 100644
(file)
index 0000000..
0c1dfa1
--- /dev/null
+++ b/
mcs/tests/test-anon-94.cs
@@ -0,0
+1,30
@@
+using System;
+
+class Program
+{
+ public class BaseClass
+ {
+ public int i;
+ public virtual void Print () { Console.WriteLine ("BaseClass.Print"); i = 90; }
+ }
+
+ public class Derived : BaseClass
+ {
+ public override void Print ()
+ {
+ Action a = () => base.Print ();
+ a ();
+ }
+ }
+
+ public static int Main ()
+ {
+ var d = new Derived ();
+ d.Print ();
+
+ if (d.i != 90)
+ return 1;
+
+ return 0;
+ }
+}