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:
authorRavi Pratap M <ravi@mono-cvs.ximian.com>2002-06-08 21:27:07 +0400
committerRavi Pratap M <ravi@mono-cvs.ximian.com>2002-06-08 21:27:07 +0400
commitdfc1d386fafac548dc875c69875a57400fcf0af1 (patch)
tree5cb5f747c88f0e9e3a4da0c890e6c3e5cdfca2bd /mcs/tests/test-128.cs
parent6f0b3df4fe016ff0667cf7aef291a3780b976f8c (diff)
2002-06-08 Ravi Pratap <ravi@ximian.com>
* test-128.cs : Add. This ensures we apply attributes to accessors of events and properties. svn path=/trunk/mcs/; revision=5175
Diffstat (limited to 'mcs/tests/test-128.cs')
-rw-r--r--mcs/tests/test-128.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/mcs/tests/test-128.cs b/mcs/tests/test-128.cs
new file mode 100644
index 00000000000..21e5ec7b05b
--- /dev/null
+++ b/mcs/tests/test-128.cs
@@ -0,0 +1,41 @@
+using System;
+
+public class SimpleAttribute : Attribute {
+
+ string n;
+
+ public SimpleAttribute (string name)
+ {
+ n = name;
+ }
+}
+
+public class Blah {
+
+ int i;
+
+ public int Value {
+
+ [Simple ("Foo!")]
+ get {
+ return i;
+ }
+
+ [Simple ("Bar !")]
+ set {
+ i = value;
+ }
+
+ }
+
+ public static int Main ()
+ {
+ //
+ // We need a better test which does reflection to check if the
+ // attributes have actually been applied etc.
+ //
+
+ return 0;
+ }
+
+}