[Mono-bugs] [Bug 56452][Wis] Changed - CS0626: extern method with no impl
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Apr 2004 12:32:52 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=56452
--- shadow/56452 2004-04-04 12:31:01.000000000 -0400
+++ shadow/56452.tmp.28109 2004-04-04 12:32:52.000000000 -0400
@@ -126,6 +126,24 @@
emit a warning if there is any attribute on the thing, even if it does
not specify the external impl.
Not really sure what should be done. On the one hand, I think that
this should be an error -- when we emit the metadata it is invalid. I
think that is cause for an error. otoh, we really should be compat.
+
+------- Additional Comments From bmaurer@users.sf.net 2004-04-04 12:32 -------
+Even more interesting, on MS.net + mcs I get:
+
+C:\Inetpub\ftproot>mcs tt.cs
+In type: Test
+
+Unhandled Exception: System.InvalidOperationException: Method
+does_not_work does not have a method body.
+ at System.Reflection.Emit.TypeBuilder.CreateType()
+ at Mono.CSharp.TypeContainer.CloseType()
+ at Mono.CSharp.RootContext.CloseTypes()
+ at Mono.CSharp.Driver.MainDriver(String[] args)
+ at Mono.CSharp.Driver.Main(String[] args)
+
+So this is a runtime bug, an mcs bug *AND* a s.r.e bug.
+
+I love these ones.