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:
authorMartin Baulig <martin@novell.com>2003-04-09 14:59:26 +0400
committerMartin Baulig <martin@novell.com>2003-04-09 14:59:26 +0400
commit58a563b3d2edb7542f74e338a7ac6f8e76f8b56c (patch)
treeb60cc6f5c8c565b132342df98c3a0dfd893734af /mcs/tests/test-190.cs
parent826ea1867c2049ba128a59a1b7f8bd40fec5c07d (diff)
Ooops, this is the correct test-190.cs file.
svn path=/trunk/mcs/; revision=13437
Diffstat (limited to 'mcs/tests/test-190.cs')
-rw-r--r--mcs/tests/test-190.cs28
1 files changed, 18 insertions, 10 deletions
diff --git a/mcs/tests/test-190.cs b/mcs/tests/test-190.cs
index ab5e3b7b480..4a8f6bea780 100644
--- a/mcs/tests/test-190.cs
+++ b/mcs/tests/test-190.cs
@@ -1,15 +1,23 @@
-public class A {
- private int var;
-}
+class A
+{
+ private int foo = 0;
-public class B: A {
- public void foo() {
- var = 1;
+ class B : A
+ {
+ void Test ()
+ {
+ foo = 3;
+ }
}
-}
-public class Cl {
- public static void Main() {
- // Nothing
+ class C
+ {
+ void Test (A a)
+ {
+ a.foo = 4;
+ }
}
+
+ static void Main ()
+ { }
}