diff options
author | Ravi Pratap M <ravi@mono-cvs.ximian.com> | 2002-06-08 21:27:07 +0400 |
---|---|---|
committer | Ravi Pratap M <ravi@mono-cvs.ximian.com> | 2002-06-08 21:27:07 +0400 |
commit | dfc1d386fafac548dc875c69875a57400fcf0af1 (patch) | |
tree | 5cb5f747c88f0e9e3a4da0c890e6c3e5cdfca2bd /mcs/tests/test-128.cs | |
parent | 6f0b3df4fe016ff0667cf7aef291a3780b976f8c (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.cs | 41 |
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; + } + +} |