diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-07-14 17:57:14 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-07-14 17:57:14 +0400 |
commit | ea8490ff755138f46a047883869639a1a7b4d1e7 (patch) | |
tree | e28b703078d275fdc1a907c9929385c1f56760e5 /mcs/tests/test-787.cs | |
parent | 563589c7795242478c454e826ab8b628e17a5761 (diff) |
New tests.
svn path=/trunk/mcs/; revision=160357
Diffstat (limited to 'mcs/tests/test-787.cs')
-rw-r--r-- | mcs/tests/test-787.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/tests/test-787.cs b/mcs/tests/test-787.cs new file mode 100644 index 00000000000..5c1d28f4afd --- /dev/null +++ b/mcs/tests/test-787.cs @@ -0,0 +1,32 @@ +using System; + +public class A : Attribute +{ + public virtual string Prop { + set {} + get { return null; } + } + + public int Field () + { + return 0; + } +} + +public class B : A +{ + public override string Prop { + set {} + get { return "b"; } + } + + public new int Field; +} + +[B (Prop = "a", Field = 3)] +public class Test +{ + public static void Main () + { + } +} |