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:
authorMiguel de Icaza <miguel@gnome.org>2003-11-11 20:34:37 +0300
committerMiguel de Icaza <miguel@gnome.org>2003-11-11 20:34:37 +0300
commitd4c562e554943bc448783686c0e74ad24b7b7042 (patch)
tree9f284d3f32fc57b908348b156a1e504e7e6f80af /mcs/errors/cs0609.cs
parent5540520e22e8975796a09c831e361ea1294d9562 (diff)
Applied patch from Marek Safar: New error test files for MCS.
svn path=/trunk/mcs/; revision=19826
Diffstat (limited to 'mcs/errors/cs0609.cs')
-rw-r--r--mcs/errors/cs0609.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/errors/cs0609.cs b/mcs/errors/cs0609.cs
new file mode 100644
index 00000000000..45832f243b0
--- /dev/null
+++ b/mcs/errors/cs0609.cs
@@ -0,0 +1,23 @@
+// cs0609.cs: Cannot set the name attribute on an indexer marked override
+// Line: 14
+using System.Runtime.CompilerServices;
+
+class BaseClass {
+ protected virtual bool this[int index] {
+ get {
+ return true;
+ }
+ }
+}
+
+class DerivedClass: BaseClass {
+ [IndexerName("Error")]
+ protected override int this[int index] {
+ get {
+ return false;
+ }
+ }
+
+ static void Main() {}
+}
+