[Mono-list] Delegate compile error
Ravi Pratap M
ravi@ximian.com
24 Feb 2003 19:50:42 -0600
Hi Brian,
Could you please file this as an MCS bug ? That way it won't get lost
in the list's (rather heavy) traffic and also ensure that we get down to
fixing it.
On Sun, 2003-02-23 at 20:31, Brian Ritchie wrote:
> The following snippet is causing an error when compiling with mcs (on
> cygwin). csc works fine.
>
> namespace Test
> {
> public delegate void CloseFTP();
> }
>
> Unhandled Exception: System.NotSupportedException: Type CloseFTP was not
> completed.
> at System.Reflection.Emit.ModuleBuilder.PreSave(String fileName)
> at System.Reflection.Emit.AssemblyBuilder.Save(String assemblyFileName)
> at Mono.CSharp.CodeGen.Save(String name)
> at Mono.CSharp.Driver.MainDriver(String[] args)
> at Mono.CSharp.Driver.Main(String[] args)
> (null)
It shouldn't be throwing an exception. Instead, it should be
complaining about not seeing any class with a main since the library
option has not been specified. I would be curious to see what csc writes
to the file in such a case. Please attach ildasm's output of the csc
generated exe.
Thanks,
Ravi