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:
authorRaja R Harinath <harinath@hurrynot.org>2005-02-16 17:33:28 +0300
committerRaja R Harinath <harinath@hurrynot.org>2005-02-16 17:33:28 +0300
commita335c2feaf0d26245489ab7cef1c3756ceeb0f88 (patch)
treeb52962c440bb98ee0511012580ae16aef8405c74 /mcs/errors/cs0187-2.cs
parent6eda1963fbd8aed2e08fa61a37fb4e1c320a3330 (diff)
In mcs:
Fix parts of #63202. * expression.cs (UnaryMutator.ResolveOperator): Remove redundant lookup of operator in base type. Ensure that all checks happen when the operator resolves to an "op_..." method. In errors: * cs0187-1.cs, cs0187-2.cs: New tests from #63202. svn path=/trunk/mcs/; revision=40750
Diffstat (limited to 'mcs/errors/cs0187-2.cs')
-rw-r--r--mcs/errors/cs0187-2.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs0187-2.cs b/mcs/errors/cs0187-2.cs
new file mode 100644
index 00000000000..f00adcc9e8f
--- /dev/null
+++ b/mcs/errors/cs0187-2.cs
@@ -0,0 +1,14 @@
+// cs0187.cs: No such operator '++' defined for type 'object'
+// Line: 9
+
+using System;
+using System.Collections;
+
+class Test {
+ public static void Main(string[] args) {
+ ArrayList al = new ArrayList();
+ al[0] = 0;
+
+ Console.WriteLine((al[0])++);
+ }
+}