diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-08-04 18:04:42 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-08-04 18:04:42 +0400 |
commit | 6094dea7afd28e2ce215fbae4fcd40fc6ecf231f (patch) | |
tree | 5ed583d0eebeb371999b84a2a4f21eb4afc36fba /mcs/errors/cs1016.cs | |
parent | babecb6d8bc9a7ba57c56e7cb072a53c5ee393e0 (diff) |
2004-08-04 Marek Safar <marek.safar@seznam.cz>
* 62 new error tests.
svn path=/trunk/mcs/; revision=31867
Diffstat (limited to 'mcs/errors/cs1016.cs')
-rw-r--r-- | mcs/errors/cs1016.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mcs/errors/cs1016.cs b/mcs/errors/cs1016.cs new file mode 100644 index 00000000000..890c5cda0db --- /dev/null +++ b/mcs/errors/cs1016.cs @@ -0,0 +1,21 @@ +// cs1016.cs: Named attribute argument expected +// Line: 19 + +using System; +using System.Runtime.CompilerServices; + +class Attr: Attribute +{ + public Attr (int i) {} + + public string Arg { + set {} + get { return "a"; } + } +} + +public class E +{ + [Attr (Arg = "xxx", 3)] + public void Method () {} +}
\ No newline at end of file |