[Mono-list] Is this a bug?

Daniel Pecos dpecos_listas@yahoo.es
Wed, 22 Jan 2003 23:20:31 +0100


--2B/JsCI69OhZNC5r
Content-Type: multipart/mixed; boundary="AhhlLboLdkugWU4S"
Content-Disposition: inline


--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello

	I'm trying to run the code I have attached, but I get this
	error (using Mono 0.19):

** (test.exe:2333): WARNING **: Could not load class from token 0x01000002 =
in=20
test.exe

** (test.exe:2333): WARNING **: Missing method .ctor in assembly test.exe=
=20
typeref index 2

** ERROR **: file jit.c: line 1923 (mono_analyze_stack): assertion failed: =
(cm)
aborting...

	It consists of a library which contains a class, Tree, and another file
	which implements Main. It gets compiled without any error or warning
	but it doesn't run (I don't know if I have made a mistake, because I am
	learning C#)

	Moreover, if I rename the file library TreeDiskSpace.cs into Tree.cs
	and recompile, It runs correctly !!

	Is this a bug of the compiler, or am I making a mistake?

Thanks!

--=20

Sysadmins busy fighting SPAM.

--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="TreeDiskSpace.cs"
Content-Transfer-Encoding: quoted-printable

using System;

namespace Utils {
=09
	public class Tree
	{
		string pth;
	=09
		public string Pth
		{
			get {
				return pth;
			}
			set {
				pth =3D value;
			}
		}
	=09
		public Tree (string pth)=20
		{
			this.pth =3D pth;
		}

	}
}

--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="test.cs"
Content-Transfer-Encoding: quoted-printable

using System;
using Utils;

namespace Program {
=09
	class test=20
	{
		static void Main ()=20
		{
			Tree tds =3D new Tree ("");
			tds.Pth =3D "Mail";
			Console.WriteLine(tds.Pth);=09
		}
	}
}
		=09

--AhhlLboLdkugWU4S--

--2B/JsCI69OhZNC5r
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+Lxkvvzta/NRIDmARAvf7AKCnSxYiwNlhBjWAX/WNijjpmn5I0gCg4ZDW
OM5wLB91QpnMi+q5LMLWOPo=
=PQhq
-----END PGP SIGNATURE-----

--2B/JsCI69OhZNC5r--