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:
authorMiguel de Icaza <miguel@gnome.org>2001-09-26 22:32:27 +0400
committerMiguel de Icaza <miguel@gnome.org>2001-09-26 22:32:27 +0400
commit0f4462f2e4ad558f5448fd0e10cc639936b04c79 (patch)
tree62fa0e80b0993183991f6bc8dc5555b1995438a5 /mcs/tests/test-8.cs
parente3229d026416f0cd660904632864525d08f3c80b (diff)
2001-09-26 Miguel de Icaza <miguel@ximian.com>
* cs-parser.jay: Update operator constants. * parameter.cs (Parameters::GetParameterInfo): Hook up VerifyArgs (Parameters::GetSignature): Hook up VerifyArgs here. (Parameters::VerifyArgs): Verifies that no two arguments have the same name. * class.cs (Operator): Update the operator names to reflect the ones that the spec expects (as we are just stringizing the operator names). * expression.cs (Unary::ResolveOperator): Fix bug: Use MethodInfo's ReturnType instead of LookupMethodByBuilder as the previous usage did only work for our methods. (Expression::ConvertImplicit): Handle decimal implicit numeric conversions as well. (Expression::InternalTypeConstructor): Used to invoke constructors on internal types for default promotions. (Unary::Emit): Implement special handling for the pre/post increment/decrement for overloaded operators, as they need to have the same semantics as the other operators. (Binary::ResolveOperator): ditto. (Invocation::ConversionExists): ditto. (UserImplicitCast::Resolve): ditto. svn path=/trunk/mcs/; revision=988
Diffstat (limited to 'mcs/tests/test-8.cs')
-rw-r--r--mcs/tests/test-8.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/mcs/tests/test-8.cs b/mcs/tests/test-8.cs
index 390c55d9795..5de9804f341 100644
--- a/mcs/tests/test-8.cs
+++ b/mcs/tests/test-8.cs
@@ -15,6 +15,15 @@ class X {
if ((b + c) != 24)
return 4;
+ if (a++ != 10)
+ return 5;
+ if (++a != 12)
+ return 6;
+ if (b-- != 10)
+ return 7;
+ if (--b != 8)
+ return 8;
+
return 0;
}
}