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>2005-09-26 20:59:32 +0400
committerMarek Safar <marek.safar@gmail.com>2005-09-26 20:59:32 +0400
commit6d699a3c7df7de98a0c34f02f3c1eb05bebd358c (patch)
tree53868da7fdb79771f100e476d82d42aba3928d44 /mcs/tests/test-294.cs
parent61c9de5443cfca8db405075a2ec5b9ad3e397971 (diff)
2005-09-26 Marek Safar <marek.safar@seznam.cz>
* test-294.cs: Added new tests. * test-457.cs: New test. svn path=/trunk/mcs/; revision=50791
Diffstat (limited to 'mcs/tests/test-294.cs')
-rw-r--r--mcs/tests/test-294.cs23
1 files changed, 19 insertions, 4 deletions
diff --git a/mcs/tests/test-294.cs b/mcs/tests/test-294.cs
index 0d672e77486..1f4750e0e9f 100644
--- a/mcs/tests/test-294.cs
+++ b/mcs/tests/test-294.cs
@@ -36,15 +36,18 @@ public class DerivedTest : Test
ObsoleteClass member;
[Obsolete]
- public DerivedTest(string a) : base(a, false)
+ public DerivedTest(string a) : base(a, false)
{
- Name = a;
- }
+ Name = a;
+ }
public string Method ()
{
return base.Name;
}
+
+ [Obsolete]
+ public void T2 () {}
public static void Main () {}
}
@@ -54,13 +57,25 @@ class ObsoleteClass2: ObsoleteClass
{
}
+
class ObsoleteClass3
{
- public static readonly double XSmall = 0.6444444444444;
+ public static readonly double XSmall = 0.6444444444444;
[Obsolete ("E1")]
public readonly double X_Small = XSmall;
[Obsolete ("E2")]
public static readonly double X_Small2 = XSmall;
+}
+
+
+class ObsoleteClass4
+{
+ [Obsolete]
+ public void T ()
+ {
+ lock (typeof (ObsoleteClass4)) {}
+ lock (typeof (ObsoleteClass2)) {}
+ }
} \ No newline at end of file