diff options
author | Martin Baulig <martin@novell.com> | 2004-04-28 06:46:59 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-04-28 06:46:59 +0400 |
commit | ade4bb39644de96a01953c97b02d3fad9b3f426a (patch) | |
tree | ca358e35305a3f3724b1816309431b255a4c35a0 /mcs/errors/cs0117-3.cs | |
parent | 8312ede90ea06531260b71234f68f8dbcf9444d7 (diff) |
New tests for bug #52154.
svn path=/trunk/mcs/; revision=26095
Diffstat (limited to 'mcs/errors/cs0117-3.cs')
-rw-r--r-- | mcs/errors/cs0117-3.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/errors/cs0117-3.cs b/mcs/errors/cs0117-3.cs new file mode 100644 index 00000000000..d7784d15362 --- /dev/null +++ b/mcs/errors/cs0117-3.cs @@ -0,0 +1,23 @@ +// CS0117: `A' does not contain a definition for `Foo'. +// Line: 16 +using System; +using System.Runtime.CompilerServices; + +class A +{ + [IndexerName ("Foo")] + public int this [int index] { + get { return index; } + set { ; } + } + + static void Test (A a, int value) + { + a.Foo = value; + } + + public static void Main () + { + Test (new A (), 9); + } +} |