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>2004-10-04 00:54:49 +0400
committerMarek Safar <marek.safar@gmail.com>2004-10-04 00:54:49 +0400
commit48a85faff5d2e4389e90d179a66821cd30f6165b (patch)
treef89c2664c472a53edfdff58bea75032804aa92b9 /mcs/tests/test-297.cs
parent3017fb8e70645a69949faf4ff47486cb3473a3c7 (diff)
2004-10-03 Marek Safar <marek.safar@seznam.cz>
* test-297.cs: Incorporated test for #67108 svn path=/trunk/mcs/; revision=34639
Diffstat (limited to 'mcs/tests/test-297.cs')
-rw-r--r--mcs/tests/test-297.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/tests/test-297.cs b/mcs/tests/test-297.cs
index 993a6ba521a..aa0a36eb664 100644
--- a/mcs/tests/test-297.cs
+++ b/mcs/tests/test-297.cs
@@ -26,8 +26,17 @@ class T {
return 5;
}
+
+ object[] ats = typeof(ConverterService).GetMethod("Login").GetCustomAttributes (typeof(MyAttribute), true);
+ MyAttribute at = (MyAttribute) ats[0];
+ if (at.Val != "a")
+ return 6;
+
return 0;
}
+
+ [MyAttribute(Val=AnEnum.a)]
+ public void Login(string a) {}
}
[AttributeUsage(AttributeTargets.All,AllowMultiple=true)]
@@ -36,4 +45,11 @@ class My : Attribute {
public My (object o) {
obj = o;
}
+
+ public AnEnum Val;
}
+
+public enum AnEnum
+{
+ a,b,c
+} \ No newline at end of file