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-1.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-1.cs')
-rw-r--r--mcs/errors/cs0187-1.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/errors/cs0187-1.cs b/mcs/errors/cs0187-1.cs
new file mode 100644
index 00000000000..5f82aaf6909
--- /dev/null
+++ b/mcs/errors/cs0187-1.cs
@@ -0,0 +1,15 @@
+// cs0187.cs: No such operator '++' defined for type 'bool'
+// Line: 13
+
+public class C{
+ public static bool Foo{
+ get{
+ return false;
+ }
+ set{
+ }
+ }
+ public static void Main(){
+ Foo++;
+ }
+}