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:
authorMarek Safar <marek.safar@gmail.com>2004-06-22 17:40:12 +0400
committerMarek Safar <marek.safar@gmail.com>2004-06-22 17:40:12 +0400
commit2b850af228c607574995b4b6d6fae5e1add86b31 (patch)
tree381bd0ce6da7d2e5f62712e9ea1c8f5af2483381 /mcs/errors/cs0609.cs
parent03f9ca4f63744845a94374fa2a0f19f07098a74d (diff)
new tests
svn path=/trunk/mcs/; revision=30114
Diffstat (limited to 'mcs/errors/cs0609.cs')
-rw-r--r--mcs/errors/cs0609.cs45
1 files changed, 22 insertions, 23 deletions
diff --git a/mcs/errors/cs0609.cs b/mcs/errors/cs0609.cs
index 45832f243b0..254e6e028e0 100644
--- a/mcs/errors/cs0609.cs
+++ b/mcs/errors/cs0609.cs
@@ -1,23 +1,22 @@
-// 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() {}
-}
-
+// cs0609.cs: Cannot set the 'IndexerName' attribute on an indexer marked override
+// Line: 15
+
+using System.Runtime.CompilerServices;
+
+class BaseClass {
+ protected virtual bool this[int index] {
+ get {
+ return true;
+ }
+ }
+}
+
+class DerivedClass: BaseClass {
+ [IndexerName("Error")]
+ protected override bool this[int index] {
+ get {
+ return false;
+ }
+ }
+}
+