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>2006-04-09 16:27:05 +0400
committerMarek Safar <marek.safar@gmail.com>2006-04-09 16:27:05 +0400
commit6214ded3d9c77bab2300246ee389d16d7953672f (patch)
tree8f69183b7598101219849e7b321d242ead273681 /mcs/tests/test-473.cs
parentac204c55ee71148bf631151c7e90f0f9e7da5ff4 (diff)
2006-04-09 Marek Safar <marek.safar@seznam.cz>
class.cs (Operator.Emit): Extracted code from MethodData to correctly detect obsolete attributes. (Method.CreateEmitContext): Moved to MethodOrOperator. svn path=/trunk/mcs/; revision=59262
Diffstat (limited to 'mcs/tests/test-473.cs')
-rw-r--r--mcs/tests/test-473.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/mcs/tests/test-473.cs b/mcs/tests/test-473.cs
index d7742476f6c..f678b7a820d 100644
--- a/mcs/tests/test-473.cs
+++ b/mcs/tests/test-473.cs
@@ -92,22 +92,22 @@ partial struct PS
}
-public struct Value
+[Obsolete ("Replaced by direct enum type casts to/from GLib.Value", true)]
+public class EnumWrapper {
+ public EnumWrapper (int val)
+ {
+ }
+}
+
+public struct Value
{
- [Obsolete ("Replaced by Enum cast", true)]
+ [Obsolete ("Replaced by Enum cast", true)]
public static explicit operator EnumWrapper (Value val)
- {
- return null;
+ {
+ return new EnumWrapper (334455);
}
}
-
-[Obsolete ("Replaced by direct enum type casts to/from GLib.Value", true)]
-public class EnumWrapper
-{
-}
-
-
class Test {
public static void Main () {
}