Thanks Ajay!, I'm sending a file report with code to test it right now.
Jaime.
El lun, 01-07-2002 a las 13:39, Dwivedi , Ajay Kumar escribi�:
> > I got a compiler error telling that I cannot convert a struct to an
> > interface through casting. The struct actually implements the
> > interface
> > and I try to cast it directly (although the 'as' way doesn't work
> > neither):
> >
> > ISomeInterface isObject = (ISomeInterface) isObject;
> >
> This is surely a bug in the Compiler. The interface implementation
> information is not written to the output file for structs.
>
> For example,
> public struct Mystruct: IMyInterface
> {
> }
> public interface IMyInterface
> {
> }
>
> The monodis of output file has
> .class public sequential ansi sealed beforefieldinit Mystruct
> extends [mscorlib]System.ValueType
>
> whereas it should also have
>
> implements IMyInterface
>
> Please file a bug report.
>
> Cheers,
> Ajay
>
--
// http://geneura.ugr.es -- The Geneura Team
// http://www.go-mono.com -- The Mono Project
signature.asc
Description: Esta parte del mensaje esta firmada digitalmente
