[Mono-list] Yet Another Bug Report
Paolo Molaro
lupus@ximian.com
Thu, 21 Feb 2002 17:10:08 +0100
On 02/18/02 Adam Treat wrote:
> using System;
>
> public class test
> {
> public static void Main(string[] args)
> {
> if(args.Length > 0)
> {
> Console.WriteLine(new string(args[0].ToCharArray()));
> }
> }
> }
>
> The problem is with mcs/corlib. Try compiling this with mcs running under
> mint and you get 'file class.c: line 893 (mono_class_from_mono_type): should
> not be reached' which is refering to the 'case MONO_TYPE_PTR:' line in
> mono/mono/mono/metadata/class.c. As you can see the constructor is not
> unsafe, although there are unsafe constructors for string types. Because,
We still haven't complete support for pointer types, so you got that
assert because the compiler requests a list of all the constructors and
when we build the signature info, we have to include the info about the
unsafe constructors, too. Anyway, I added support for pointer types in
metadata now, so you can compile that code. Make sure you update corlib,
too.
> reflection/type.cs. Sorry about not writing 'real' test cases. I promise
> this is my last one, from now on i'll go learn how to write nunit tests ;-)
Actually, since we still don't run nunit with mono, it's better to get
simple test cases that I can run and test quickly. NUnit tests are good
for the medium term, so you can start writing them anyway:-)
Keep up with the reports!
Thanks.
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
lupus@ximian.com Monkeys do it better