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:
authorMartin Baulig <martin@novell.com>2004-04-28 06:46:59 +0400
committerMartin Baulig <martin@novell.com>2004-04-28 06:46:59 +0400
commitade4bb39644de96a01953c97b02d3fad9b3f426a (patch)
treeca358e35305a3f3724b1816309431b255a4c35a0 /mcs/errors/cs0117-2.cs
parent8312ede90ea06531260b71234f68f8dbcf9444d7 (diff)
New tests for bug #52154.
svn path=/trunk/mcs/; revision=26095
Diffstat (limited to 'mcs/errors/cs0117-2.cs')
-rw-r--r--mcs/errors/cs0117-2.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/errors/cs0117-2.cs b/mcs/errors/cs0117-2.cs
new file mode 100644
index 00000000000..a62c853fe59
--- /dev/null
+++ b/mcs/errors/cs0117-2.cs
@@ -0,0 +1,22 @@
+// CS0117: `A' does not contain a definition for `Foo'.
+// Line: 15
+using System;
+using System.Runtime.CompilerServices;
+
+class A
+{
+ [IndexerName ("Foo")]
+ public int this [int index] {
+ get { return index; }
+ }
+
+ static int Test (A a)
+ {
+ return a.Foo;
+ }
+
+ public static void Main ()
+ {
+ Test (new A ());
+ }
+}