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:
authorRaja R Harinath <harinath@hurrynot.org>2005-12-16 12:25:48 +0300
committerRaja R Harinath <harinath@hurrynot.org>2005-12-16 12:25:48 +0300
commit8b642a994deabd8a0d590e7c04ae559d7e7f82ca (patch)
tree3de0d1fa8469063259d432b9dd0010e47ec7cec6 /mcs/tests/test-478.cs
parent61960a8048e78692c8eb760ec31408f01d4cb326 (diff)
Fix #77008.
* mcs/enum.cs (EnumMember.EnumMember): Pass the parent_enum as the 'parent' argument to the base constructor. * tests/test-478.cs: New test case from #77008. svn path=/trunk/mcs/; revision=54525
Diffstat (limited to 'mcs/tests/test-478.cs')
-rw-r--r--mcs/tests/test-478.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/mcs/tests/test-478.cs b/mcs/tests/test-478.cs
new file mode 100644
index 00000000000..948c28f81b0
--- /dev/null
+++ b/mcs/tests/test-478.cs
@@ -0,0 +1,27 @@
+using System;
+using System.ComponentModel;
+using System.ComponentModel.Design;
+
+namespace Test {
+ class MainClass {
+ public static void Main() {}
+ }
+
+ [Test(TestEnum2.TestValue)]
+ enum TestEnum {
+ Value
+ }
+
+ class TestAttribute : Attribute {
+ public TestAttribute( TestEnum2 value ) {
+ }
+ }
+
+ class Test2Attribute : Attribute {
+ }
+
+ enum TestEnum2 {
+ [Test2]
+ TestValue
+ }
+}