diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-06-22 17:40:12 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-06-22 17:40:12 +0400 |
commit | 2b850af228c607574995b4b6d6fae5e1add86b31 (patch) | |
tree | 381bd0ce6da7d2e5f62712e9ea1c8f5af2483381 /mcs/errors/cs0668-2.cs | |
parent | 03f9ca4f63744845a94374fa2a0f19f07098a74d (diff) |
new tests
svn path=/trunk/mcs/; revision=30114
Diffstat (limited to 'mcs/errors/cs0668-2.cs')
-rw-r--r-- | mcs/errors/cs0668-2.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/cs0668-2.cs b/mcs/errors/cs0668-2.cs new file mode 100644 index 00000000000..2d7c64b362b --- /dev/null +++ b/mcs/errors/cs0668-2.cs @@ -0,0 +1,17 @@ +// cs0668.cs: Two indexers have different names; the 'IndexerName' attribute must be used with the same name on every indexer within a type across the board. +// Line: 11 + +using System.Runtime.CompilerServices; +class A { + [IndexerName ("Blah")] + int this [int a] { + get { return 1; } + } + + int this [string b] { + get { return 2; } + } +} + + + |