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-10-10 06:36:47 +0400
committerMiguel de Icaza <miguel@gnome.org>2001-10-10 06:36:47 +0400
commitc07b3a44d91fb7e3e4872ec3b72b8ee2c3e7c399 (patch)
tree58713a45e06e3d3eaf7f1be5812dc051f68d5fd7 /mcs/errors/cs0126.cs
parent0d98160fe4ed138a8d06efd4b29265af81052b60 (diff)
2001-10-10 Miguel de Icaza <miguel@ximian.com>
* makefile: Renamed the compiler to `mcs.exe' instead of compiler.exe * expression.cs (ImplicitReferenceConversion): handle null as well as a source to convert to any reference type. * statement.cs (Return): Perform any implicit conversions to expected return type. Validate use of return statement. * codegen.cs (EmitContext): Pass the expected return type here. * class.cs (Method, Constructor, Property): Pass expected return type to EmitContext. 2001-10-09 Miguel de Icaza <miguel@ximian.com> * expression.cs: Make DoResolve take an EmitContext instead of a TypeContainer. Replaced `l' and `location' for `loc', for consistency. (Error, Warning): Remove unneeded Tc argument. * assign.cs, literal.cs, constant.cs: Update to new calling convention. * codegen.cs: EmitContext now contains a flag indicating whether code is being generated in a static method or not. * cs-parser.jay: DecomposeQI, new function that replaces the old QualifiedIdentifier. Now we always decompose the assembled strings from qualified_identifier productions into a group of memberaccesses. 2001-10-08 Miguel de Icaza <miguel@ximian.com> * rootcontext.cs: Deal with field-less struct types correctly now by passing the size option to Define Type. * class.cs: Removed hack that created one static field. 2001-10-07 Miguel de Icaza <miguel@ximian.com> * statement.cs: Moved most of the code generation here. svn path=/trunk/mcs/; revision=1126
Diffstat (limited to 'mcs/errors/cs0126.cs')
-rw-r--r--mcs/errors/cs0126.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/mcs/errors/cs0126.cs b/mcs/errors/cs0126.cs
new file mode 100644
index 00000000000..2742abfdb09
--- /dev/null
+++ b/mcs/errors/cs0126.cs
@@ -0,0 +1,9 @@
+// cs0126: an object of type `int' is expected in the return statement
+// Line: 7
+
+class X {
+ int X ()
+ {
+ return;
+ }
+}